cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

3 REPLIES 3
Super User III
Super User III

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



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

@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?

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



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (7,070)