2

I have seen here several discussion about how to trigger a 2013 list workflow using REST, but so far I cannot succeed in running a site workflow, which should be basically easier. My code:

https://mysite.sharepoint.com/mysite/_api/SP.WorkflowServices.WorkflowInstanceService.Current/StartWorkflow(subscriptionId='0fa223dc-898e-493e-b523-c89ba796688b')

returns a BadRequest. The subscriptionId is correct and the WF called is a site workflow without parameter.
What am I missing?

2 Answers 2

1

It seems there is only a workaround: move all actions in the list workflow I wanted to use to launch the site workflow. It works perfectly (of course after re-configuring all parameters).

2
  • Can you explain this in more detail? Do you mean that you ended up moving all your Site WF's actions into a new List WF instead? Commented Jun 6, 2019 at 15:57
  • 1
    @ChrisOdegard, yes, I have created a plain list workflow and copied all actions there
    – Marpio
    Commented Jun 28, 2019 at 14:41
-1

Try this site "Create a SharePoint 2013 workflow to start the site workflow" http://www.documentmanagementworkflowinfo.com/sharepoint-2013/sharepoint-designer-2013-workflow-start-another-workflow.htm

1
  • This is valid only for 2010 site workflows
    – Marpio
    Commented Dec 14, 2017 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.