web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Power Automate trigger on record update problem

(0) ShareShare
ReportReport
Posted on by 390

Hi,

we have a power automate that triggers when a lead is updated to send a notification, however somehow the lead update 6-8 times during a very short time frame it seems instant. So this results in 6 notifications to be sent out. 

I tried to fix this by setting a send flag as a date range after the first mail has been send out and in the beginning of the flow I check if the flag date is the sames as today and if yes then don't send a notification. However it seems that these first triggers all at the same time which means that its to late the flow has already triggered!

Any ideas on how to fix this? I just want to send one notification on multiple simultaneously triggers running. 

regards

Martin

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi Martin, 

    I am surprised that your record is updated several times in such a short time. Is this triggered by other workflows or plugins? Anyway, I think you can solve your issue with the following approach.

    You can use the following optionSet field as a flag:

    • Waiting to be Sent
    • Sending attempt
    • Sending successfully

    You set the flag to "Sending attempt" using a synchronous workflow BEFORE the lead is updated and if the flag is equal to "Waiting to be sent".

    Your Power Automate cloud flow will be executed after the synchronous workflow. Your flow will be triggered and send an email if the flag is equal to "Waiting to be sent". Once the email is sent, your flow will set the flag to "Sending successfully". 

    Note that you can configure your Power Automate Cloud flow trigger by choosing the fields that can trigger the flow: 

    pastedimage1621412695719v1.png

    With this approach, the email will only be sent once. 

    We can also improve this process by sending only one email per day by adding a second technical field of type date which will contain the date on which the last email was sent and another synchronous workflow. 

    The second workflow will set the flag to "Waiting to be sent" if the flag is equal to "Sending successfully" and the technical field of type date is not equal to today's date. Then the first workflow will automatically set the flag to "Sending attempt" and the power automate will also be triggered and send the email. For your Power Automate, you will need to set today's date in the technical field after the email is sent. 

    EDIT: It seems too complicated. There may be another solution. 

  • icimasa Profile Picture
    390 on at

    Hi Mehdi,

    thanks for the response and yes as these are updated by the Marketing application there are probably a few flows running, however I also don't understand why there are so many updates triggered. sometimes it can be 10-12 updates running.. :(

    Yes the legacy wf idea is nice, but was hoping to be able to achieve this by not using a legacy workflow. But maybe that is the best way to go here..

    I will do some more testing and post my findings here

    best regards

    Martin

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans