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

Community site session details

Session Id : CGfa2S62KOPrxKmLltzX8X
Power Automate - Using Flows
Unanswered

http request trigger PATCH URL refers to old environment's Dataverse

Like (0) ShareShare
ReportReport
Posted on 10 Mar 2022 13:43:01 by 167

I have a PowerApps solution which contains a button flow called Finalize questionaire. The flow triggers when an HTTP request is received. In my dev environment, the flow works perfectly. But when I export the solution into my test environment, the flow fails at a "Get a row by ID" (from Dataverse) step. It thinks that the ID doesn't exist. 

 

It turns out that the button flow is running in the dev environment even when I call it in the test environment. I think that is because the PATCH URL refers to a service that has the Dataverse instance hard-coded. But since I don't have access to the Azure back end, I can't verify or edit that.

 

How do I fix this problem so that my solution's flow will work whereever my solution is installed?

  • rameshmukka Profile Picture
    1,091 on 27 Jan 2024 at 14:49:40
    Re: http request trigger PATCH URL refers to old environment's Dataverse

    @JenniferK @ManishJain @ChristianAbata 

    I have the same issue now. Now I am unable to update the environment variable used for HTTP URL in my managed solution without creating an unmanaged layer. Do any of you guys have any solution for this? Please advise.

     

    Thanks,

    Ramesh

  • JenniferK Profile Picture
    167 on 11 Mar 2022 at 18:25:03
    Re: http request trigger PATCH URL refers to old environment's Dataverse

    @ManishJain 

    The button is one of the new custom buttons that's in preview for model-driven apps. I add it through the "Edit in preview" option for the model-driven app.  That looks like this:

    JenniferK_0-1647022777967.png

     

    Note that the button action is to run a javascript function. The javascript function sends a PATCH request with a record id to a url: 

    https://psdfsdfsdf.sdfsdfsdf.logic.azure.com:443/workflows/xxxxxxxxxxxxxxxxxxxxxxxx/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    That url is the one that was generated when I created the flow.

  • MJain Profile Picture
    2,450 on 11 Mar 2022 at 14:19:59
    Re: http request trigger PATCH URL refers to old environment's Dataverse

    Hi @JenniferK ,

    Could you elaborate more on how you are calling the flow from button ? 

     

    Thanks

  • JenniferK Profile Picture
    167 on 11 Mar 2022 at 13:55:46
    Re: http request trigger PATCH URL refers to old environment's Dataverse

    @ChristianAbata , I don't think that is the issue. The flow does not use any environment variables (I wish!). The Patch URL was automatically generated when I first saved the flow.

    JenniferK_0-1647006498843.png

    For context, the button calling my flow is one of the new custom buttons available in model-driven apps. The button calls a javascript which makes an http request to the PATCH url shown in the flow.

  • ChristianAbata Profile Picture
    8,949 Most Valuable Professional on 11 Mar 2022 at 00:14:08
    Re: http request trigger PATCH URL refers to old environment's Dataverse

    hi @JenniferK  when you export yor solution you need to empty your data from flow.  Take a look Data Source Environment Variables in Power Platform Solutions - SharePoint - YouTube it works for flows and apps

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete