10-09-21 08:07 PM
Hi Team, as per example below I need to check if items from collection1 are within collection2 but in collection2 we may find more than 10 results...
At the moment I have set to collection to check for duplicate values, but if the below happens, I need to make sure that I don't get the error (now row exist in collection), so it can check and see if any of the items from collection1 are within collection 2, and move thematching item into a new collection
can you help to find an example to follow?
note from collection 1 there will be no empty row to fill up
thank you
Collection1 | Collection2 | |
Form1 | Form2 | |
GI13289312 | GI13289305 | |
GI13289313 | GI13289306 | |
GI13289307 | ||
GI13289308 | ||
GI13289309 | ||
GI13289310 | ||
GI13289311 | ||
GI13289312 | ||
GI13289313 |
11-09-21 05:12 AM
Hello Lorenzo,
Why not use a filter collection action followed by a decision stage to check existence of item in Col1 in Col2?
For Example, Let us take your collections above and then the below Steps :
Step 1 : Loop Through collection 1.
Step 2 : Filter item of Col1 in Col2 and store in a temporary Collection --> [col2.field]='[col1.field]' { Stored in Temporary Collection. Let us call it Temp}
Step 3: Check number of rows of Temp.
if Temp>0
element of Col1 exists in Col2
else
element of Col1 does not exist in Col2
Step 4 : Clear Collection Temp for next iteration.
Step 5: Increment counter in Col1 Loop and start Step 1 unless collection end is reached.
Best Regards,
Ved Sengupta
RPA Developer
Deloitte India (Offices of the US)
Bangalore
11-09-21 12:07 PM
13-09-21 08:54 PM
14-09-21 02:23 AM
30-09-21 01:01 PM