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 Automate / Hash Map / Dictionary ...
Power Automate
Unanswered

Hash Map / Dictionary Instead of Using a Nested For Loop?

(1) ShareShare
ReportReport
Posted on by 2

Hi Power Automate Community,

I have a flow that reads through an Excel sheet with the "List Rows Present in a Table" connector. In this flow, I also have it set to parse through a SharePoint point folder using the "Get File (properties only)" connector.

Basically, I am having this flow check each file name in the SharePoint folder, compare that name to each value in the columns provided in the Excel sheet, and if there is a match, it will use "Update a Row" to fill out the date of when that file was created.

My solution right now is using two "Apply to Each" loops (one for List Rows Present in a Table, and one for Get File (properties only)), and while it theoretically does work, it is taking too much time to run. There are over 400 files in the SharePoint folder and over 900 rows in the Excel sheet, so by my estimate I'm guessing it is running 36,000 instances of checks.

I was hoping that there was a way to use something like a Hash Map or Dictionary to perhaps store my Excel row names as key:value pairs, and then use that to check against the file names given through the SharePoint connector Get File (properties only).

 

Also, although I technically only need this Flow to run one time, I feel like having knowledge of a more efficient solution would help down the road if I had to mass-update this spreadsheet again.


Any help would be appreciated, thank you!

Categories:

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard