本文介绍了通过调用REST API在列表项上启动工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我读了一些文章,说我必须求助于

/_ api/SP.WorkflowServices.WorkflowInstanceService.Current/StartWorkflowOnListItemBySubscriptionId(subscriptionId ='e90bdef8-209b-436b-acd7-b6ec01abb578',itemId ='109')

但无法正常工作,响应是

{错误":{代码":-2147024809,System.ArgumentException",消息":{"lang":"ru-RU",值" :"subscription""}}}

然后我尝试了

/_ api/SP.WorkflowServices.InteropService.Current/StartWorkflow(associationName ='WorkflowName',listId ='79e70851-4ea2-45cf-8c6f-06adc9f3f226',itemGuid ='bfdffb1b-e7e4-4363-9f8f- 04641575724f')

但是问题还是相似的

{错误":{代码":-2147024809,System.ArgumentException",消息":{"lang":"ru-RU",值" :" associationName"}}}

我看到它说参数有问题,但是我看不到任何错误...

有人能做到吗?谢谢你的建议

解决方案




I have read some articles that says that I have to resort to calling 

/_api/SP.WorkflowServices.WorkflowInstanceService.Current/StartWorkflowOnListItemBySubscriptionId(subscriptionId='e90bdef8-209b-436b-acd7-b6ec01abb578',itemId='109')

but can't make it work, the response is

{"error":{"code":"-2147024809, System.ArgumentException","message":{"lang":"ru-RU","value":"subscription"}}}

then I tried 

/_api/SP.WorkflowServices.InteropService.Current/StartWorkflow(associationName='WorkflowName',listId='79e70851-4ea2-45cf-8c6f-06adc9f3f226',itemGuid='bfdffb1b-e7e4-4363-9f8f-04641575724f')

but again the problem is similar 

{"error":{"code":"-2147024809, System.ArgumentException","message":{"lang":"ru-RU","value":"associationName"}}}

I see it says that the problem with parameters but I don't see any mistakes with them...

does anyone ever make it work? Thank for any advice

解决方案




这篇关于通过调用REST API在列表项上启动工作流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 12:51