Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Refresh 365 record when MS flow has finished running

  • 1.  Refresh 365 record when MS flow has finished running

    Posted 16 days ago

    I'm struggling to find a way to refresh a record in 365 after a MS Flow has finished updating the record.

    The flow in question updates a field in a 365 record when it finishes, so i want the record to refresh and show the data in that field (simple text field)

    Maybe there is a way to refresh the page if a field contains data?

    Any help will be appreciated!



    ------------------------------
    Giovanni Vetere
    Westcoast Ltd
    XMA Ltd
    UK
    ------------------------------
    Conference-CRMUG_200x200


  • 2.  RE: Refresh 365 record when MS flow has finished running

    GOLD CONTRIBUTOR
    Posted 16 days ago
    Flow (Now called Power Automate) works only in an asynchronous fashion. This means that once you trigger the flow, it will run in the cloud at some point (usually pretty quickly, but it could take a while.)

    It sounds like you're triggering your flow from within the record in 365 but once that trigger is sent, it all runs completely separate in the background. There's no connection between your trigger action, your web browser, and the flow process.

    So my thinking is there is no way to do this. If there was a way, it would ideally be a javascript event that happens whenever the record you are visiting is updated while you're on the page. You could build this yourself, but given how often Microsoft is changing things (remember, Flow is now called Power Automate) you'd be taking on a liability with that code that you shouldn't own.

    Are you online? I imagine we'll see an update at some point that will push down real-time changes so they appear without a refresh.. but that's not here yet.

    ------------------------------
    Nick Hance
    President; Software Rescue Specialist
    Reenhanced
    www.reenhanced.com
    Green Lane PA
    ------------------------------

    Conference-CRMUG_200x200


  • 3.  RE: Refresh 365 record when MS flow has finished running

    SILVER CONTRIBUTOR
    Posted 16 days ago

    Hi Giovanni,

    Has flows are async, I am not sure that you will find a way arround this except refreshing after a few seconds to see if it's finished. Yet I am interested if someone else provide a solution for this.

    Flows are meant to replace workflows that may be deprecated one day. Currently, flows can't replace sync workflows, but maybe a solution for sync flows will be available one day. Till that day, I think you will have to use sync workflow to meet your needs.

    Best regards,



    ------------------------------
    Laurent Maneville
    Nmédia
    Drummondville QC
    ------------------------------

    Conference-CRMUG_200x200


  • 4.  RE: Refresh 365 record when MS flow has finished running

    Posted a minute ago

    I managed to complete this by altering a few things:

    I also made a change to start the Flow using a button i created using Ribbon Workbench - this used POST api to send a request to Flow:

    1. Changed my Flow to start using When a HTTP request is received
    2. Completed the Flow
    3. Ended the flow with a Response request - this returns JSON to the call at the beginning of the Flow - this is picked up by the Jquery in 365 and I can then use as a variable for when to refresh the page (the page will now have the field updated)



    ------------------------------
    Giovanni Vetere
    Westcoast Ltd
    XMA Ltd
    UK
    ------------------------------

    Conference-CRMUG_200x200


If you've found this thread useful, dive deeper into User Group community content by role