Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
Saving SPD workflows along with Site Templates - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

2015-01-29

If you have a SharePoint designer workflow attached to a list in a SP site, and you want to create an identical site, you will save site as site template and create a new site with it, assuming it will be identical.

In reality this is not the case, as any SPD list workflow will not work in new site, as they will still be associated with List Id’s ( for list with which workflow is associated, Task list & History list) in original site.

To make this work, recreate SPD list workflow as reusable workflow, attach it to required list and then save site as site template. Now, if you create new site based on site template, you will find workflow associated with list and working as desired.

Reason: As earlier stated, with regular workflows, List Id’s are bonded strongly in workflow.xoml.wfconfig.xml , where as with reusable workflows, List Id’s are loosely bonded, to be more clear following association entry will show the difference:

reusable workflows:

< Association ListID="{$ListId:Lists/Contacts;}" StartManually="true" TaskListID="{$ListId:Lists/Tasks;}" HistoryListID="{$ListId:Lists/Workflow History;}" StartOnCreate="true" StartOnChange="true" />

regular workflow:

<Association ListID="{5112D71E-2D5A-4875-9ED8-E7DD78D3D901}" StartManually="true" TaskListID="{49170964-7E29-4902-A8E2-888D3C882AC9}" HistoryListID="{74CFBD22-9D23-46E2-B342-993025AFCE9B}" StartOnCreate="true" StartOnChange="true"/>

 

(Visited 118 times, 1 visits today)

About the author 

Deepak Chawla

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.