Skip to main content

I am trying to use Nintex DLL in my project for some approval task in my project, in a similar manner the Out of the box nintex approval might be using. In Out of the box nintex approval page it updates the Nintex Workflow task list with approval/reject status . I tried this approach and an item in “Nintex Workflow Task” list is getting updated but with “Pending” as status every time I update the list instead of approval. Can someone answer why the changes are not committed after calling the clientContext.ExecuteQuery() method. Please find below the code snippet ::

ListItem item = lists.GetItemById(userTask.SharePointTaskId);
itemr"ContentTypeId"] = "0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
item.FieldValuesl"ID"] = 574;
item.FieldValuesl"Title"] = "Test";
item.FieldValuesl"ApproverComments"] = "Test Approval";
item.FieldValuesl"Decision"] = 1;
item.FieldValuesl"ApprovalOutcome"] = 1;
item.FieldValuesl"Status"] = "Completed";
item.FieldValuesl"WorkflowOutcome"] = "Approved";
item.FieldValuesl"Completed"] = "True";
item.FieldValuesl"PercentComplete"] = 1.0f;
item.FieldValuesl"Comments"] = "Test Approval";
item.Update(); // ITEM GETTING UPDATED HERE
clientContext.ExecuteQuery(); // AFTER EXECUTING THIS STATEMENT THE CHANGES VANISHES, AND DO NOT PERSIST

I suggest you to set your task response with this web service method >>> ProcessTaskResponse3 


Hi ‌, have you solved it?


Reply