Skip to main content

Notifications

Announcements

No record found.

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

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Power Automate trigger on record update problem

    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

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,206 User Group Leader on at
    RE: Power Automate trigger on record update problem

    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. 

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans