Authorize sub-site workflow on parent site

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:

  1. Manually add workflow in parent site with elevated permissions
  2. 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:

  1. is it possible to add the sub-site workflow to the parent site automatically? if yes, how?
  2. is it possible to change the scope of the workflow automatically? if yes how?

Thanks in advance,

Jimmy


May 25th, 2015 11:36am

Hello Jimmy,

Thank you for your question.

We are currently looking into this issue and will give you an update as soon as possible.

Thank you for your understanding and support.

Best Regards,

Eric

Free Windows Admin Tool Kit Click here and download it now
May 27th, 2015 5:05am

Hi Jimmy,

Instead of using workflow, why you not consider using Event receiver by creating a custom solution? In a custom solution, you can use server side object to update the parent site columns.

Thanks,
Reken Liu

May 27th, 2015 11:35pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics