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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Deployment of http req...
Power Automate
Unanswered

Deployment of http request flow from one environment to another

(0) ShareShare
ReportReport
Posted on by 5

I have created a Flow on “HTTP request received” and using JavaScript on button click I am passing this HTTP URL to trigger the flow.
In that JavaScript i have provided HTTP trigger URL in static way(suggest to retrieve it dynamically if possible).
But when I deployed in target environment the HTTP URL Got changed and I need to modify the URL in that JavaScript, but we don’t want to do unmanaged changes on our target environment.

Is there any way to construct that HTTP trigger URL in JavaScript?
or what I need to do to resolved this issue? 

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

    Hello @Sjain710 ,

    The URL generated for When an HTTP request is received is done upon saving the Flow, so when you deployed the Flow in another environment, the URL is not kept same because the deployed Flow is a New Flow registered in Azure Logic Apps and thus will give you a new URL for triggering it.

    Unfortunately, I don't think you have any option rather than changing the URL in the JavaScript Code or if you want to make it dynamic, you can store the URL in a SharePoint List and fetch the URL from there in your Code, so that next time if there is a similar issue, you need to update the link in SharePoint and not in the code.

    For further information, you can refer this post https://powerusers.microsoft.com/t5/Building-Flows/How-is-the-url-generated-for-the-http-request-received-trigger/td-p/671965 

    Hope this helps!

    Please give a Kudo if you found this helpful or mark this Reply as Solution if it solved your problem!

  • ShubhamJain7 Profile Picture
    5 on at

    will Environment variables will work for this scenario as fetching the value from variable would be more easy..?

  • NiloferA Profile Picture
    on at

    @Sjain710 ,

    Yes it will work, as long as you know how to fetch the environment variable in JavaScript code.

    I found a reference here https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Get-Value-of-Environment-Variable-using-JavaScript/td-p/577219

  • ShubhamJain7 Profile Picture
    5 on at

    Thanks , yeah that i know 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 375 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 269 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 127 Most Valuable Professional

Last 30 days Overall leaderboard