cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
drewski
Level: Powered On

Best method for avoiding duplicate Flow emails?

I have a standard intake using PowerApps which has several different statuses. When each status changes, an email gets sent out.

 

One thing I'm trying to figure out is the best way to make sure the emails are only sent ONCE per status change.

 

In the old Designer world, I had an extra field in the form that would collect the "Initital Status" and then compare once the form was submitted.. If the Initial Status, and the Status field remained the same, it would cancel the workflow. If the status changed, it would kick off the email.

 

I thought of trying to use the new "variable" feature in Flow, but I couldn't add any dynamic content from the form to collect.. so this seems to be the wrong direction?


Should I be using the "Collection" feature within the app to collect the values and compare?

 

Anyone figure out a better method?

1 REPLY 1
Community Support Team
Community Support Team

Re: Best method for avoiding duplicate Flow emails?

Hi @drewski,

 

Could you please share a screenshot of your PowerApps app's configuration?

Do you want to pass parameters from your PowerApps app to your Microsoft Flow?

Do you want to store the Status value from your PowerApps app within your flow?

Further, could you please share more details about your scenario?

 

If you want to pass parameters from your PowerApps app to your flow, please check the following article:

Start a flow in an app

 

If you want to initialize an variable to store the Status value (old Status value) from your PowerApps app within your flow and then compare it with the new Status value passed from your PowerApps app, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

You could consider take a try to store the Status value within a SharePoint list. When a new Status value is passed from your PowerApps app into your flow, get the last inserted Status value within your SharePoint list, then compare the last inserted value in your SharePoint list with the new Status value passed from your PowerApps app, if they are the same, do nothing, if not, send the email notification.

 

 

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.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,073)