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

  • 5 February 2018
  • 6 replies
  • 37 views

Badge +2

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

213237_pastedImage_1.png


6 replies

Badge +16

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

Badge +2

Hi,

thanks in advance

can you please explain how to do that in workflow.

Badge +16

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

Badge +2

Hi,

 

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

Nintex Workflow

nintex workflow 2

math operation:

query list:

set cond:

Badge +16

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?

Badge +2

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.

Reply