문제

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?

도움이 되었습니까?

해결책

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).

다른 팁

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top