Forum Discussion
Please Help - Custom Workflow (SP Designer 2013) - Not Working
Hi Ashley,
I created a workflow similar to yours. I'm using a variable to set the guid of the site template (to make it easier to manage updates) but I believe you need to set it as {C7FEA85D-0E0B-4B65-A0AB-1C079D37D707} rather than {C7FEA85D-0E0B-4B65-A0AB-1C079D37D707}#PMOTemplate.
-Karine
Are you able to show how you created the variable using the GUID?
Thank you so much!
- Karine BrousseNov 07, 2017Copper Contributor
Hi again,
I just use a local variable (string) set at the beginning of the workflow:
I then use this local variable to set the WebTemplate value in the Parameters dictionary, similar to what is described in the DMC info article you linked to:
The Guid needs to be entered with the curly brackets but without the hashtag and everything that follows. From your screenshots, it seems you are already using a local variable to set the site template GUID, so you should be able to just edit the value in the string builder to remove '#PMOTemplate'.
I can confirm my workflow does use the custom template matching the guid provided when creating the site (tested with different versions of the same template) in SharePoint Online.
Hope that helps!
-Karine
- Ashley DavisNov 07, 2017Copper Contributor
Hi Karine,
Thank you for the information, I have it setup that way and now the site doesn't create a subsite at all.
I'm wondering if it has anything to do with how the site template was added to SharePoint.
I created the subsite template on a separate site and saved it as a template and then uploaded it to the Solutions on my parent site with the workflow. Could that be the cause of my problem? Is there a specific way I need to add the custom template to my new site so it works properly?
Thank you!!
Ashley
- Karine BrousseNov 08, 2017Copper Contributor
You said you are able to use the template when creating sites manually? Did you get the GUID from the site where the template is used?
Are both the site you used to create the template and the site you are using the template in located in the same site collection?