eric_halsey
Novice

How to get previous version of a list item?

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

Thanks in advance,

Eric

0 Kudos
Reply
5 Replies
eric_halsey
Novice

Re: How to get previous version of a list item?

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

0 Kudos
Reply
jun
Novice

Re: How to get previous version of a list item?

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

0 Kudos
Reply
eric_halsey
Novice

Re: How to get previous version of a list item?

Hi June,

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

Regards,

Eric

0 Kudos
Reply
vadim_tabakman
Nintex Employee
Nintex Employee

Re: How to get previous version of a list item?

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

0 Kudos
Reply
MaisaNintex
Scholar

Re: How to get previous version of a list item?

@eric_halsey Could you please put the code Please for US 

0 Kudos
Reply