Question
How do I compare values in one pagelist to another?
Hi,
I am configuring a when rule that will return true if values in one pagelist match in another and false if there were no matches, but I need some guidance on this. Right now I am using the IsInPageList function that takes three parameters: lookFor, lookAt, and lookIn.
-For lookFor, I want to use <current-value> to loop through one pagelist and extract the property to be compared, however current-value returns an error. I cannot hard code indexes because the size of the pagelist varies.
-For lookAt, I specified the property to be compared in the pagelist specified in the next param
-For lookIn, I put the pagelist name
You are greatly appreciated!
To compare 2 pagelists,
In an activity or data transform, first iterate over pagelist - within this iteration call isInPageList function. To the function you can pass the value of the property you want to search.
As you would be in loop, you need not mention current or page list index, it will automatically get the property from step page context.
For lookfor param - you can give a property defined in the pagelist you are iterating and which you want to compare
lookAt- which property in pagelist2 you want to compare