I have a problem where my nested For Each are creating duplicates an not sure how to correct it.
Scenario:
From system 1 we have multiple images coming into the LA, it needs to add it onto a record in D365 that can have multiple images already. I’m trying to setup the LA so that it will check the images on D365 and only add an image if that image doesn’t already exist.
Issue:
I have tried having a For each for the images on D365 nested in the For each for the images from system 1, but this created duplicates on D365. Summary of what happens:
enter image description here
Have also tried swapping it around so the For each for the images from system1 is nested in the For each for the images on D365, but also creates duplicates on D365.Summary of what happens:
enter image description here
Any ideas would be appreciated!
Cherise Russell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.