使用PowerShell将SharePoint 2013/2010工作流保存为模板 [英] Save a SharePoint 2013/2010 workflow as template using powershell
问题描述
我们的Farm中有大约1000个SharePoint 2013工作流程。我们需要保存这些工作流程。在Designer中手动打开站点并转到
每个工作流并将其存储为模板是很繁琐的。是否有Powershell脚本 实现这个目标?
你好RJThorat,
没有电源shell命令来完成这样的直接步骤。
"另存为模板"是一个只能在SharePoint Designer中使用的选项,目前没有API或接口提供相同的功能。
您需要手动在SharePoint Designer中保存为模板,然后使用上面的PowerShell脚本下载wsp(必须首先在SharePoint Designer中将工作流转换为WSP) 。
使用下面的PowerShell从Site Asserts库下载WSP文件:
destination=
" C:\\tools \\Folder"
webUrl=
"<特定网站的网址>"
We have around 1000 SharePoint 2013 workflows in our Farm. We need to save these workflows. It is tedious to manually open Sites in Designer and go to each workflow and store it as a template. Is there a Powershell Script to achieve this?
解决方案Hi RJThorat ,
No power shell command to complete such a step directly.
"Save as Template" is an option which can be only used in SharePoint Designer, currently there is no API or interface provided the same function for that.
You need to save as template in SharePoint Designer manually and then use the PowerShell script above to download the wsp (It is necessary to convert workflow to WSP firstly in SharePoint Designer).
Download the WSP file from Site Asserts library using PowerShell below:
destination= "C:\\tools\\Folder"
webUrl= "<Url of the specific site>"
这篇关于使用PowerShell将SharePoint 2013/2010工作流保存为模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文