Quantcast
Channel: Nintex Connect: Active Threads
Viewing all articles
Browse latest Browse all 4245

Programmatically Complete ToDo and FlexiTasks

$
0
0

I am creating custom task forms using InfoPath. I am using child content types so I can have custom fields associated with both ToDo and FlexiTasks. I am writing a custom web service to be able to process the custom field data and write it back to the Task item so it can be read by the workflow.

My question is how should I be correctly completing these task programmatically. I have seen with the ToDo task that I can just set the Status to completed and the workflow picks it up. I have seen other forum articles suggesting I should use the below snippet.

taskItem[Nintex.Workflow.Common.NWSharePointObjects.FieldDecision] = 0;
taskItem[Nintex.Workflow.Common.NWSharePointObjects.FieldComments] = " Some Comments";
taskItem.Update();

- I only see an Outcome property on a ToDo task content type. Do ToDo tasks have comments? I don't see a comments field on the task?
- I see both an Outcome and ApprovalOutcome on a FlexiTask?

Could we please get some updated documentation on how to use the new task types?


Viewing all articles
Browse latest Browse all 4245

Trending Articles