Iqbal Ahmed

Iqbal Ahmed

  • NA
  • 35
  • 540

Nintex Workflow approval through c# cose

Feb 24 2021 6:22 AM
Hi,
 
Execution of following lines of code is going to rejected part of the Nintex work flow . any Idea why it is not approving
context.TaskItem[Nintex.Workflow.Common.NWSharePointObjects.FieldDecision] = 1;
context.TaskItem[SPBuiltInFieldId.WorkflowOutcome] = "Approve";
context.TaskItem[decisionFieldId] = 1;
context.TaskItem[outcomee] = 1;
context.TaskItem[commentsFieldId] = comment;
context.TaskItem[SPBuiltInFieldId.Completed] = true;
context.TaskItem[SPBuiltInFieldId.PercentComplete] = 1;
context.TaskItem[SPBuiltInFieldId.TaskStatus] = SPResource.GetString(new CultureInfo((int)context.Web.Language, false), "WorkflowTaskStatusComplete", new object[0]);
context.TaskItem.Update();

Answers (2)