cancel
Showing results for 
Search instead for 
Did you mean: 

Lookup in Collection

paul_tudberry
Level 2
​HI Guys, apologies if this has been asked previously, I have 2 matching collections with identical field names, I wish to lookup if a value exists in a certain field and return a true/false answer without looking through the full collection.

For example

the Value in [Collection1.Field1] = "Dave"

Collection 2 could have 50 names in it, I wish to see if  any of   the values in [Collection2.Field1]="Dave" without looping through the full collection.

------------------------------
npower
Europe/London
------------------------------
1 BEST ANSWER

Helpful Answers

JeroenOosterhol
Level 4
You can use action "Collection contains value" from the Utility - Collection Manipulation to check whether a value occurs in a collection

------------------------------
Jeroen Oosterholt
Automation Designer
DHL
Maastricht
------------------------------

View answer in original post

3 REPLIES 3

JeroenOosterhol
Level 4
You can use action "Collection contains value" from the Utility - Collection Manipulation to check whether a value occurs in a collection

------------------------------
Jeroen Oosterholt
Automation Designer
DHL
Maastricht
------------------------------

AndreyKudinov
Level 10
Or filter collection 2 by that value and see if result set contains data.

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------

​Great , thank you guys,

------------------------------
npower
Europe/London
------------------------------