我有一个SharePoint Designer 2010批准工作流,我试图通过JavaScript客户端对象模型批准任务。我能够将所有领域更改为“完成”/“批准”,但WF似乎从未注意到变化。

有没有人成功完成了使用SP Designer定制的内置批准的批准任务?如果是这样,怎么样?

有帮助吗?

解决方案

I had to set the following fields (Internal Names) to the values given:

approvalValues["WorkflowOutcome"] = "Approved";
approvalValues["FormData"] = "Completed";
approvalValues["Status"] = "Approved";
approvalValues["PercentComplete"] = 1;
approvalValues["Completed"] = true;

The key here was Status, FormData, and Completed. It was no way obvious to me that those would be required to be set to the values given. "Approved" is not even listed as a possible value for Status.

许可以下: CC-BY-SA归因
scroll top