How to get previous version of a list item?

  • 9 February 2015
  • 5 replies
  • 15 views

Badge +7

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

Thanks in advance,

Eric


5 replies

Badge +7

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

Badge +2

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

Badge +7

Hi June,

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

Regards,

Eric

Userlevel 7
Badge +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 : Nintex Workflow - What Changed UDA - Vadim Tabakman 

cheers,

Vadim

Badge +1

@eric_halsey Could you please put the code Please for US 

Reply