Has anyone programmatically completed tasks?

  • 3 September 2016
  • 4 replies
  • 3 views

Badge +9

We have some workflows that are generating tasks for the users. We would like them to be able to completed from a centralized form in addition to answer them from emails or the Workflow task list.

We've tried a number of options thus far including trying to complete the task from the workflow through powershell or C# Service. While we've successfully got the task to say completed, other tasks are not marked as completed.

(The scenario is that multiple user can complete a given task. In the normal course if one of the users completes the task, the rest of the tasks are completed by the system.)


4 replies

Userlevel 7
Badge +11

Hey Stephan Onisick‌ have you checked out the Nintex Webservice ?  https://{server}/_vti_bin/NintexWorkflow/workflow.asmx 

Try one of these methods.

ProcessFlexiTaskResponse

ProcessFlexiTaskResponse2

ProcessTaskResponse

ProcessTaskResponse2

ProcessTaskResponse3

ProcessTaskResponseUsingToken

Badge +9

Thanks I'll look at them. Webservices are a problem with the way the front-ends are configured in this installation with Linux Secure Servers.  That's why we developed our own Services.

Badge +9

We actually found a way to complete the task for a user from a Nintex List Form (not Workflow Task). It involved capturing the Instance Id from the workflow--which we saved in a database and then finding the task associated with the user.  This happened in a background service. Then we executing a SharePoint Modal Popup from a tab on the Nintex Form having already obtained the workflow taskid.  The updating of the form was done by one of our programmers with dojo widgits. Not a piece of cake.

Badge +9

yes

Reply