Designer 워크 플로우 작업을 승인하려면 JavaScript OM
-
10-12-2019 - |
문제
SharePoint Designer 2010 승인 워크 플로우가 있으며 JavaScript Client 객체 모델을 통해 작업을 승인하려고 시도하고 있습니다.필드는 모든 필드를 "완료"/ "승인"으로 변경할 수 있지만 WF가 변경 사항을 알지 못하는 것으로 보이지 않습니다.
SP 디자이너로 사용자 정의 된 지어진 승인 WF에 대한 승인 작업을 성공적으로 완료 한 적이 있습니까?그렇다면 어떻게?
해결책
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
.
제휴하지 않습니다 sharepoint.stackexchange