web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup multiple indexe...
Power Apps
Answered

Lookup multiple indexes in Forall

(0) ShareShare
ReportReport
Posted on by 559

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.

 

Anthony_Dob_1-1632736016408.png

 

More information of the current code and how it behaves:

 

  • Training 1
    • 1 file
  • Training 2
    • 2 files
  • Training 3
    • 1 file

4 files have to be saved

 

Result of the run: 3 files got saved

 

2021_09_27_11_35_10_2021_09_27T09_16_00.8265830Z.csv_OneDrive.png

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

 

 

Categories:
I have the same question (0)
  • C-Papa Profile Picture
    1,836 on at

    Hi, look at the below screen shot, i think the comma should be replaced with ).

     

    CPapa_0-1632741679424.png

     

  • Verified answer
    AnthonyD Profile Picture
    559 on at

    Seems like i was looking for a very difficult formula while all i had to do was:

     

    ForAll(
     Filter(
     Attachments,
     cref8_TrainingAttachments.cref8_name in galTrainings.AllItems.cref8_name
     ) As A,
     ExportCevoraFiles.Run(
     A.'Attachment Id',
     A.Attachment.FileName,
     varFileLink.foldername
     )
    );

     

    Best Regards,
    Anthony

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard