cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

how to compare list item 1 with list item 2 using nintex workflow

How to compare previous value with current value in nintex workflow. if current value equals to old value i need to set field value.

Labels: (2)
0 Kudos
Reply
6 Replies
Workflow Hero

Re: how to compare list item 1 with list item 2 using nintex workflow

can you do a math calculation on ID to get the previous ID then query list for properties of previous item for comparison?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: how to compare list item 1 with list item 2 using nintex workflow

Hi,

thanks in advance

can you please explain how to do that in workflow.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: how to compare list item 1 with list item 2 using nintex workflow

create a number variable called vNumPreviousID or something

use Math operation

pass in current item ID

-1

output to vNumPreviousID 

Query list where ID = vNumPreviousID

pull values that you want into different variables

compare variables pulled above from query list with current item properties

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: how to compare list item 1 with list item 2 using nintex workflow

Hi,

 

i tried above logic but not working, This is my workflows

Nintex Workflow

nintex workflow 2

math operation:

query list:

set cond:

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: how to compare list item 1 with list item 2 using nintex workflow

ok this is assuming that don't delete any items.  what did the math operation return for previous ID?  can you confirm there is an item with that ID and it is the one you want?

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: how to compare list item 1 with list item 2 using nintex workflow

i didn't deleted any items , I have two list items but data is same in the both items , I am comparing that two items. after math operations, I am getting ID's but that ID's not in the list.

0 Kudos
Accept as Solution Reply