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 / http request trigger P...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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?

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

    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

  • JenniferK Profile Picture
    167 on at

    @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.

  • MJain Profile Picture
    2,450 on at

    Hi @JenniferK ,

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

     

    Thanks

  • JenniferK Profile Picture
    167 on at

    @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.

  • rameshmukka Profile Picture
    1,121 on at

    @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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 600

#2
Valantis Profile Picture

Valantis 453

#3
11manish Profile Picture

11manish 356

Last 30 days Overall leaderboard