Solved

Flexi Task Approval Using C#

  • 18 June 2023
  • 4 replies
  • 60 views

Badge +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

 

 

icon

Best answer by SimonMuntz 19 June 2023, 00:06

View original

4 replies

Userlevel 6
Badge +21

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

Badge +1

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

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

Userlevel 6
Badge +21

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.

Badge +1

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

Reply