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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Compare two lists and ...
Power Automate
Unanswered

Compare two lists and avoid apply to each loops

(1) ShareShare
ReportReport
Posted on by 4
Hi everyone,
 
I'm working with two lists: 
  • Sharepoint list Partners, with Name of partner & Risk (text columns)
  • Excel table Partners, with Name of partner & Risk
I try to copy the risk in excel to the corresponding partner in Sharepoint list. I made it with get items > apply to each > filter array 'Name eq Name' > update item.
Problem : with this solution, I have two apply to each, and when I run this flow I got warnings because I exceed 10k actions.
Any idea how to get rid of one apply to each ?
 
Thanks for your help !
Categories:
I have the same question (0)
  • FC-26071453-0 Profile Picture
    4 on at
    Hello everyone,
    Any help would be greatly appreciated. I'm still working on this issue.
     
    Thanks!
  • takolota1 Profile Picture
    4,974 Moderator on at
    This should only take 1 Apply to each at most.
    You probably have an extra SP list reference somewhere where you should only be referencing the Filter array items & Excel.
     
    I’m assuming your Filter array From input is the SP values.
    Then the conditional should be an expression & a dynamic content.
    item()?[‘Name’] eq InsertExcelDynamicContentForName
     
    Then your Update item action should only have Filter array & Excel references.
    Like body(‘Filter_array’)[‘ID’]
  • Anil_g Profile Picture
    668 Moderator on at
    Hi
     
    chamge the flow as below
     
    1. get list items
    2. list rows from table
    3. for eaxh on list items step 1
    4. Inside that use filter array on excel list rows
    5. if output count of step 4 is greater than 0 then update list else do nothing
     
    cheers

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard