cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VeeraVaishnavi
Advocate I
Advocate I

Migration of http trigger flow and its associated web resource JS

Below find below the details of my requirement.
 
  1. We have a https trigger flow. The http url of the "HTTP POST URL" in the below screenshot varies/changes when we migrate the flow from one environment to another(e.g from DEV TO TEST environment)
VeeraVaishnavi_0-1621943990946.png

 

 
 
  1.  We have written a webresource JS and added to one of our tables' form. This JS will call the flow to perform an action when the form is saved/loaded. The screenshot is shown below: In screenshot, we can see that we pass http request URL ("HTTP POST URL" as mentioned in point 1) to the variable to invoke the flow and do the processing(In that JavaScript , we have provided HTTP trigger URL in static way.).
VeeraVaishnavi_1-1621943990954.png

 

 
Issue description - 
  1. When http trigger flow is migrated from one environment to another. The value of Http url gets changed. It required manual intervention to edit the url of flows in respective web resource JS added to table's form to call the correct flow. 
  2. When the solution is moved as managed to a new environment. It becomes impossible to edit the url values in web resource JS as edit is not possible for managed solutions.
Requirement: 
 
Could you please suggest a solution for above? If we move the solution as managed, how can we achieve in passing right url values in web resource JS to call respective flows to achieve desired functionality.
 
Kindly provide inputs.
2 REPLIES 2
jinivthakkar
Super User
Super User

@VeeraVaishnavi you can use environment variables to solve this issue, check this out:

 

https://www.youtube.com/watch?v=BFGcXSAgawM

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

VeeraVaishnavi
Advocate I
Advocate I

Thank you Jinivthakkar,

 

We will try the option and update.

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,700)