AnsweredAssumed Answered

Nintex Workflows 2013 Approve Task Programmatically in c#

Question asked by kenny.cassandra on May 15, 2017
Latest reply on May 17, 2017 by philipplucas

Hello all,

 

Currently i'm using SharePoint 2013 with Nintex Workflow 2013.

For Approval Page, i'm using aspx page (application page).

Do you guys know how to approve task from c# behind code using Nintex Workflow 2013 SDK ?

Btw, i got this reference like belows :

 

int decision = 0;
string comments = "";

Guid commentsFieldId = Nintex.Workflow.Common.NWSharePointObjects.FieldComments;
Guid decisionFieldId = Nintex.Workflow.Common.NWSharePointObjects.FieldDecision;
spTask[decisionFieldId] = decision;
spTask[commentsFieldId] = comments;

spTask.Update();

 

This above code requires Nintex.Workflow.dll.

I've already search in nintex directory and got no clue.

Does anyone have any workaround about how to apply that codes ?

Outcomes