Contents
How to start a workflow using a web service?
The StartWorkflow web service starts a workflow on an item in a document library, where the file URL of the document is known. Note: This section demonstrates how to configure a Call web service action and is not part of a workflow. Open a Call web service workflow action on the design canvas. In the URL field, select the Insert Reference icon.
How to start a workflow with a REST call?
Insert a ‘Build Dictionary’ action and add the names ‘Accept’ and ‘Content-Type’, both with the value ‘ application/json;odata=verbose ’ Instead of using the defaulted name of ‘dictionary’ in the ‘Output to’ command, I use my own name of ‘Header’.
How to prevent recursive workflow calls in SharePoint?
In SharePoint 2013 Microsoft modified the triggers on list items so that inserts or modifications to list items do not trigger the Workflows that are set to start based on those conditions. This was done in an effort to prevent recursive calls to the workflow initiation.
How to add response9 to a workflow statement?
Click on the ‘ item by name or path ’ and type ‘d/Id’ in the fill-in. Then click on ‘ dictionary ’ and select the ‘ResponseContent to’ variable – in my case this is Response9. At the end of these two changes, your statement should look as follows:
How does the Root Site list workflow work?
Through the use of several Call HTTP Web Service actions, the workflow on the root site list creates an item on a seperate list in the subsite and then attempts to start the subsite workflow on the newly created list item
What to do when your workflow doesn’t start?
Also, if I attempt to invoke the StartWorkflowOnListItemBySubscriptionId web service manually using a tool like Postman there are no errors and the workflow starts as expected. Try removing the call from AppStep. I was running into the same had the same problem and the workflow started when I moved the “call HTTP” outside of the App Step