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 / 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,980 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard