Skip to main content

Here is a little Holiday treat for everyone.. The Nintex Web Service I still believe is a little golden nugget rarely utilised.. I was presented this issue the other day from a prospective customer, and I thought  "yeah I can do that"

 

The idea was that in Nintex Forms the customer wanted to display the workflow audit history. EG

Display Name Activity Title Outcome Start End User Comments
Dan Stoll Assign Flexi Task Pending 3:40 PM 23/12/2014    
Eileen Tan Assign a Flexi task Completed 3:39 PM 23/12/2014 3:40 PM 23/12/2014 (Eileen Tan) testing

 

Inside the form.

So without waffling to much here is a screenshot of the UDA and please find attached at the bottom.

The main element is calling the Nintex Webservice method 'GetWorkflowHistoryForListItem' . and then using the 'Call Web Service' action to drill into the XML results to pull the information you need into Collection Variables.

Once you have all this info you can use the same technique as you do to build a nicely formatted table for emails as posted here Formatting Results to an Email‌ .

 

The final result looks a little like this when the output of the UDA is set to a Rich Text box and then connected as a label in Nintex Forms.

 

Please note that the Webservice call action will require the correct credentials added.

 

Happy Holidays.

Great to know the another concept to get the workflow history. Thanks for sharing this.


Daniel Stoll

I am having an issue with this because the blog post says that the download file is a UDA.  But when I download it, it has a .nwf extension.  I have tried to upload it as both a UDA and import it as a workflow and get errors both times.  I don't know what I am doing wrong.  Please help!!

Thank you!!!


Hey @Dan_Stoll,

Hope you are doing well, I followed your blog.

It worked fine. Though I have one small challenge getting pending tasks history, I am not sure where to call this UDA in the main workflow if the Review task is in pending status. Cause until the task won't be completed I can't call UDA and if the task is completed I can't get the pending task history.

In my case task is assigned to multiple people. So, some doing immediately and others keep it delayed. Should I do a scheduled task for each item by including this UDA? Or run in parallel with tasks but then until when and how frequently loop it? Has anyone faced this challenge? How did you overcome it? Please provide your valuable comments.


Reply