Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Microsoft Flow does not execute first time after record create/update.

(0) ShareShare
ReportReport
Posted on by 65

Hello All

I have created a flow to execute on create/update of record in custom entity via Powerapps Portal.

It is a very basic flow and works fine second time on create or update. However, after lest say few hours, if I create a record, it won't trigger till I manually go and update the record in dynamics crm.

My initial thought was to update the first step to "When a record is created or updated", but I cannot find this step anymore.

pastedimage1578104068379v2.png

Can someone please suggest why it is behaving like this and if their is any workaround?

Thanks

  • Suggested answer
    Bharat Sahani Profile Picture
    Bharat Sahani 65 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    Thanks ba365guy

    After enabling my audit history, the flow is working as expected. I haven't made any other change. If I am able to reproduce it, I will post it here again. Thanks for all your help. I have marked your response of enabling audit as answer.

  • ba365guy Profile Picture
    ba365guy 2,946 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    So, is your query resolved?

  • Bharat Sahani Profile Picture
    Bharat Sahani 65 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    Thanks ba365guy

    I have a tick box on the record which is un-ticked when the record is created. As I want my flow to run only once, the last step it does it come back and tick the box. that is where my name is in the audit history (Last step of the flow).

  • Suggested answer
    ba365guy Profile Picture
    ba365guy 2,946 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    Are all the logs tagged as "Update" because of your flow?

    One of the log has your name in it. (how did this update happened)

  • Bharat Sahani Profile Picture
    Bharat Sahani 65 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    Thanks BA365guy

    Apologies, took me few minutes to enable the auditing and test.

    My form is divided into 5 steps on the portal and it seems like as the user progresses forward, the record is created in the first step.

    The information provided by the user in 2nd and 3rd step is registered as an update which triggers my flow. Audit histroy SS below

    pastedimage1578107360240v1.png

    So far it all make sense.

    However, after a span of few hours, the exact same behaviour does not trigger the Flow on the first instance. I will be happy to post that history when I will reproduce it in few hours.

    There is no process/WF/script on this entity, which may trigger any updates. It is all managed via this flow.

  • Verified answer
    ba365guy Profile Picture
    ba365guy 2,946 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    Hey that was typo. I meant "no action"

    Even though you have your triggering point as "Update", your flow is triggering on create (from second time) - right?

    Do you have any asynchronous process on create of your record, does it update the same record. Can you confirm if there are any processes / plugin/ scripts that are updating these (synch. / Asynch)

    Can you check your audit history to check if any update happened

  • Bharat Sahani Profile Picture
    Bharat Sahani 65 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    Thanks ba365guy for your reply.

    In that scenario, can you please suggest, why the flow triggers on create?

    I cannot find any action for "created or updated" for Dynamics 365

    pastedimage1578104996427v1.png

  • Suggested answer
    ba365guy Profile Picture
    ba365guy 2,946 on at
    RE: Microsoft Flow does not execute first time after record create/update.

    There is on action called "Created or updated" as of now in Flow.

    Your screenshot show you chose an action for "Update"

    Did you create two different flows for create and update? (Ideally you should do this if you want flow to trigger on both the actions)

    For now, based on the screenshot, this flow will trigger only on the update.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans