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

Using conditions with 'get rows' in excel

I have a flow the occurs once a day based on who applied to my form (which transports to an excel sheet). I want the flow to only grab new submissions and send the new submissions the emails, however, everyone on the list is sent the emails. I wanted to set a condition where the at first __PowerAppsId__ is blank, could be the condition, but it does not show up in the dynamic portion.

 

Mainly looking how to only run flow on the responses that has not been run on already.

 

Thanks!

8 REPLIES 8
v-xida-msft
Community Support
Community Support

Hi @ching,

 

Could you please share a screenshot of your flow’s configuration?

 

The _PowerAppsId_ column would be populated with a unique ID automatically when a record is added into the Excel file, so I don’t think “_PowerAppsId_ is blank” could be used as a Condition.

 

I afraid that there is no way to grab new record of Excel file in Microsoft Flow currently, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Screen Shot 2017-12-19 at 9.51.35 AM.png

Thanks for replying! This is my Flow. I did read that there is not a way to grab rows whenever there is a new submission. Do you have a recommendation on how to set a condition so that only new rows get the next part of the flows. I tried to write an equation inside of my excel sheet so that I can use that as the condition but then an error runs at the "get rows-excel" portion. My main concern is that the same people will get the email again. 

 

 

 

Best,

Mia

Hi

Can you add a new column to your excel (let's call it "EmailSent"), so whenever you create a new excel row you leave it empty?

Your flow should send email notifications to all rows with this column with this column value empty, once email notification is sent you can "Update Row" (https://docs.microsoft.com/es-es/connectors/excel/#Update_row) and change the column value to YES.

If you cannot modify Escel table structure, maybe you can store each row "EmailSent" related status info together with row _PowerAppsId_ in an independent data source you create for such purpose

 

Hope this helps

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



 

duplicated 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



ching
Frequent Visitor

Hi, thank you for replying. I just tried what you suggested and it got past the 'get-rows' and 'condition problem', however, the 'update row' is running an error now. Would I just put "YES" in the change value for "EmailSent"?

 

Thank you,

 

Mia

Hi

Which is the error you are receiving? 

Sometimes excel actions fail because the file is open, but not sure if this is your case



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



duplicated



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



ching
Frequent Visitor

I think that was the problem, I had the excel document open in another tab. Now the condition went through, however the following steps are not being used on the emails that qualify for the condition that I had set up.

 

Thank you so much for your help!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,319)