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 / Flow that Monitors Sha...
Power Automate
Answered

Flow that Monitors SharePoint List for Modifications or Additions and then Updates Excel Sheet

(0) ShareShare
ReportReport
Posted on by 21

Hello,

 

I am trying to update an Excel Spreadsheet located in my OneDrive anytime items in my SharePoint List are modified or a new item is added. The part I'm have trouble on is what to include in the "Condition" section and then the "If Yes" and "If No" sections. I had originally set the Condition to pull in the Excel "Value" dynamic content and check if it was equal to zero. If yes I set it to add a row to the table and if no I set it to update the row but that didn't work. I think that my condition is wrong. Also anytime I set dynamic content as part of the conditio, the whole condition automatically gets put into an "Apply to each" group.

 

I messed around with the flow and changed some things and it still didnt work. I've attached a screenshot, any help is appreciated:

 

Capture100.JPG

 

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @emayen100595 ,

     

    List rows always create a loop. You need to create new row outside the for loop. Leave the Yes part to nothing.  Before you create the new row you need a boolean flag to identify whether the excel row is already updated or not. So declare a boolean variable before the list rows flow step. Set this value under the If condition. Set to true if excel row is updated.  Then outside the for loop check this condition is true then do not create a new row in excel.

     

    Hope it make sense.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

  • emayen100595 Profile Picture
    21 on at

    @abm  So do I leave the "Update Row" in the "No" section? Also, the result of the "boolean flag" goes in the condition statement and that gets checked? Am I understanding that correctly?

  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @emayen100595 

     

    Thanks for your reply.

     

    does1.png

     

    Here in your condition you have does not contain. Change this to equal then you can do the update in Yes condition and leave the no condition. If not you need the otherway around.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard