Hello,
Current situation:
Dpt Site that contains several sub-sites. Sub-sites are created from a template that have a library (documents) with workflow to update an item in the Dep.Site list (current projects).
Worflow: Updates several fields using REST call (inside App Step) to parent site. This works in development environment.
Issue:
When I save the dev. site as template and then create a new project site based on that template the REST call throws Unauthorized error when firing the workflow.
Tried: Read a lot of blogs facing similar issue (Fabian Williams and others) but none of them talk about this particular situation. Adding Authorization="" or DigestValue. Nothing works.
Only the following workarounds works.
Workarounds:
- Manually add workflow in parent site with elevated permissions
- After new site is created change the workflow scope manually from http://sharepoint/content/sitecollection/web to http://sharepoint/content/sitecollection.
Manually changes are not desired to avoid mistakes and administration madness.
Question:
- is it possible to add the sub-site workflow to the parent site automatically? if yes, how?
- is it possible to change the scope of the workflow automatically? if yes how?
Thanks in advance,
Jimmy
- Edited by Jimmy Jimenez Monday, May 25, 2015 1:25 PM