Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?

  • rameshmukka Profile Picture
    1,089 on at
    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 at
    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 at
    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 at
    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,947 Most Valuable Professional on at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow