29-11-21 10:46 PM
Answered! Go to Answer.
30-11-21 07:25 AM
Thanks for clarifying the doubt. I have attached the sample solution flow below:
As you can see in the flow, first I looped within the SDPI collection which had the values as below:
The Cognos collection has the below values:
Within the loop the following actions will take place:
- First, I added a row to a defined collection called as "Final Collection" with the fields: SDPI_MATERIAL_ID (text), COGNOS_MATERIAL_ID (text) and Match? (text)
- Next, I used the 'Collection Contains Value' action to check if the current material id column value for SDPI collection exists in the Cognos collection to return me a flag value called 'Matched'.
- If the value of 'Matched' is True, I will set SDPI_MATERIAL_ID and COGNOS_MATERIAL_ID as the current value of MATERIAL_ID column of SDPI Collection and Match? value as "Yes" otherwise if the value value of 'Matched' is False, I will set SDPI_MATERIAL_ID as the current value of MATERIAL_ID column of SDPI Collection, COGNOS_MATERIAL_ID as blank and Match? value as "No"
Post running the solution, the final collection has the following values:
Hope the above solution explanation helps you out 🙂
30-11-21 02:30 AM
30-11-21 06:54 AM
30-11-21 07:25 AM
Thanks for clarifying the doubt. I have attached the sample solution flow below:
As you can see in the flow, first I looped within the SDPI collection which had the values as below:
The Cognos collection has the below values:
Within the loop the following actions will take place:
- First, I added a row to a defined collection called as "Final Collection" with the fields: SDPI_MATERIAL_ID (text), COGNOS_MATERIAL_ID (text) and Match? (text)
- Next, I used the 'Collection Contains Value' action to check if the current material id column value for SDPI collection exists in the Cognos collection to return me a flag value called 'Matched'.
- If the value of 'Matched' is True, I will set SDPI_MATERIAL_ID and COGNOS_MATERIAL_ID as the current value of MATERIAL_ID column of SDPI Collection and Match? value as "Yes" otherwise if the value value of 'Matched' is False, I will set SDPI_MATERIAL_ID as the current value of MATERIAL_ID column of SDPI Collection, COGNOS_MATERIAL_ID as blank and Match? value as "No"
Post running the solution, the final collection has the following values:
Hope the above solution explanation helps you out 🙂
30-11-21 12:22 PM
30-11-21 01:54 PM