Skip to main content
Nintex Community Menu Bar
Solved

Flexi Task Approval Using C#

  • June 18, 2023
  • 4 replies
  • 112 views

Forum|alt.badge.img+1

I have a requirement to update Flexi Task created from Nintex Workflow 2016 using C#. Task has default approval action Approve & Reject.

I am using code from this link to Approve relevant task in Approval Task list. Item is getting updated but its outcome is not updating. In List View it shows outcome is Approve but when I edit item outcome choices remain unselected. Please correct me or provide me correct code.

 

Thanks & Regards

 

 

Best answer by SimonMuntz

Hi @Ali-Raza,

 

The Nintex SDK does not have C# code but it does have web requests.
If you can get your C# code to call a web service you can approve Nintex Tasks that way.
https://help.nintex.com/en-US/sdks/sdk2013/#Reference/SOAP/NW_REF_SOAP_ProcessFlexiTaskResponse2.htm?TocPath=Nintex%2520Software%2520Development%2520Kit%257CNintex%2520Workflow%25202013%2520Software%2520Development%2520Kit%257CNintex%2520Workflow%25202013%2520SDK%2520Reference%257CWeb%2520Service%2520Reference%257CService%2520operations%257C_____30

4 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • June 18, 2023

Forum|alt.badge.img+1
  • Author
  • Rookie
  • June 20, 2023

Thanks @SimonMuntz. I believe this way it would work.

Can you refer me some sample calling this webservice using JavaScript.


SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • June 20, 2023

Hi @Ali-Raza ,

 

I dont have any examples of calling this web service with JavaScript. 

A quick Google search did provide many examples of calling webservices with JavaScript.


Forum|alt.badge.img+1
  • Author
  • Rookie
  • June 21, 2023

Hi @SimonMuntz 

Thanks for your suggestion of using Nintex SDK. I was able to get JavaScript sample code using Postman and able to approve the task.

 

Thanks & Regards