Hi guys,
So i have a Power Automate flow that re runs in a forall loop. The Flow saves documents to a Onedrive folder. It runs the amount of times there is a file that has to be saved to a Onedrive folder.
On the screenshot below i have inline commentary of what is going wrong and what i want it to do.

More information of the current code and how it behaves:
- Training 1
- Training 2
- Training 3
4 files have to be saved
Result of the run: 3 files got saved

As you can see The 2nd attachment of Training 2 did not get saved because the lookup always picks the 1st Id it finds.
What is the way to make this work?
Best Regards,
Anthony