Skip to main content
Nintex Community Menu Bar

How to get previous version of a list item?

  • February 9, 2015
  • 5 replies
  • 91 views

Forum|alt.badge.img+7

Is there a workflow action that provides a way to access previous versions of list items?

Thanks in advance,

Eric

5 replies

Forum|alt.badge.img+7
  • Author
  • February 12, 2015

I have not received a response to the question so I ended up using the custom PowerShell action.  The PowerShell is pretty simple as it gets the previous version of the workflow item and then returns XML.  I use the Query XML action to pull out the values needed for the notification.  Here's the PowerShell code.

2-12-2015 9-22-24 AM.png

Here's the workflow

2-12-2015 9-22-50 AM.png


Forum|alt.badge.img+2
  • February 12, 2015

Thanks for sharing Eric.

I've never done Powershell in a workflow before. How did you get the PowerShell action (Get Previous Item) in your workflow?

Many thanks

June


Forum|alt.badge.img+7
  • Author
  • February 12, 2015

Hi June,

You can find the details here PowerShell Script Custom Workflow Action). Please let me know if you have any questions.

 

Regards,

Eric
 


vadim_tabakman
Forum|alt.badge.img+11

Hi Eric,

 

this may be a little late, but I build a UDA once to find what fields had changed when a workflow started "on modified".  It might help and it uses the Lists.asmx web service: http://workflowexcellence.com/nintex-workflow-what-changed-uda/

 

cheers,

Vadim


Maisa
Forum|alt.badge.img+2
  • Novice
  • February 6, 2020

@eric_halsey Could you please put the code Please for US