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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow is triggering on ...
Power Automate
Answered

Flow is triggering on wrong CDM

(0) ShareShare
ReportReport
Posted on by 9

Hello,

 I have 2 Dynamics databases (1 production 1 sandbox).  I have a flow that will take data from the dynamics system and put them into a on-premise SQL server using the gateway.  Because I'm using the gateway I have the flow in the default environment.

 

The trigger for the flow is automatic based upon if a value in the lead is modified using the CDS connector. The trigger/connector is pointed to the production instance. When the sandbox is updated, the flow is triggering. Looking at the flow run, it says it's production. 

 

Sandbox is a restored copy of production.

 

Any ideas on how to get this to stop?  I have a copy of the same flow for sandbox to transfer data to a sandbox SQL server but my expectation is that the trigger will only be triggered for the environment specified in the flow.

Categories:
I have the same question (0)
  • tfhegdbn Profile Picture
    149 on at

     

    Unsure if this is an issue, you can contact MS support to resolve your issue.

  • Verified answer
    Crazykarl7 Profile Picture
    9 on at

    I think I fixed it. I changed the trigger to point to sandbox, saved it, and changed it back to point to production and saved it. That seems to have reset the connection so that it triggers on the correct DB.

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Crazykarl7 ,

     

    Great! It appears that you have found a solution to your issue!

    If so, please click "Accept as Solution" on the reply that describes how you were able to solve your issue!

     

    Best Regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 282 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard