JavaScript OM per approvare il compito del flusso di lavoro del progettista
-
10-12-2019 - |
Domanda
Ho un flusso di lavoro di approvazione di SharePoint Designer 2010 e sto tentando di approvare le attività tramite il modello di oggetto client JavaScript.Sono in grado di cambiare tutti i campi su "Completato" / "approvato" ma il WF non sembra mai notare il cambiamento.
Qualcuno ha mai completato con successo un compito di approvazione per l'approvazione incorporata WF personalizzata con SP Designer?Se è così, come?
Soluzione
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
.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange