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 :
Small and medium business | Business Central, N...
Suggested Answer

Business Central Flows are triggering in the wrong Power Automate Environment after refreshing UAT

(0) ShareShare
ReportReport
Posted on by 57

Hi there,

We have several Business Central Power Automate Approval Flows which we created in the customer's Production and UAT environments. Recently, we refreshed UAT with the data from Production. Since then, when we trigger a Power Automate Flow from Business Central in the UAT environment, the flow is executing in the Production environment instead of UAT. I have verified that the Power Automate connectors are pointing to the correct environment, but I can't figure out where in Business Central you can update the flows to point to the correct environment.

Can anyone explain where the environment linkage information is stored between Business Central and Power Automate Flows? 

My only workaround is to delete the flows in UAT and recreate them.

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    You can export the work flows to a xml file from BC and verify it from there.

    Thanks.

  • Craig Day Profile Picture
    57 on at

    Hi Marco,

    Thanks for your reply. I exported the file to XML but did not see any indications within it as to which environment it is associated with. I tried deleting that flow from UAT and recreating it, and the new XML is virtually identical aside from different Workflow Step IDs.

    Can you please elaborate on what I am looking for within the XML file to determine which Power Automate environment it is looking at?

    Thanks,

    Craig 

    pastedimage1647447615806v1.png 

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    You are right, it is not there. You can perhaps search for Manage Power Automate Flows and in Configuration, you can select the environment. There may be two or more and one can be enabled. I assume the wrong one is still enabled?

    Hope it helps. If not, ask your partner or CSP to raise a support request to Microsoft.

    Thanks.

  • Craig Day Profile Picture
    57 on at

    Thanks, Marco. I ended up recreated them, so it will remain a mystery for now. I may raise a ticket with Microsoft.

    Cheers,

    Craig

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello Craig,

    Thank you for letting me know. It could be, we sometimes see this in the Office 365 portal as well, that the shown configuration in the portal does not match what is really enabled / disabled. It may be cached which can be very frustrating for support engineer / partner / end customer.

    Thank you.

  • Suggested answer
    Craig Day Profile Picture
    57 on at

    UPDATE: We finally discovered a solution to this issue, which was simpler than we would have expected. Here is the process to get your flows connected properly after refreshing a Business Central environment:

    1. In the refreshed environment in Business Central, open the "Workflows" page. Delete all of the Power Automate workflows that are present (they will have been copied over from the environment you refreshed from). If you cannot delete them due to active workflow instances, disable and rename them.

    2. Open the "Manage Power Automate Flows" page. Update to the correct environment by selecting Configuration > Select Environment

    3. After changing the environment, you should see your existing Power Automate flows that you need to re-link to this refreshed environment

    4. For each flow, disable the flow, then enable it again. This action generates entries in the Workflow table and the Webhook Subscriptions table in Business Central, which is what you need for Business Central to recognize it properly.

    Your existing flows should now be properly connected to your refreshed Business Central environment!

    Cheers,

    Craig

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Great work, thank you for sharing final outcome / 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans