Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / MS flow HTTP request L...
Sales forum
Unanswered

MS flow HTTP request Link getting change from one environment to another.

Posted on by 359

Hi all,
I have a ms flow to send an email notification, flow trigger is /When a HTTP request received/. And I am calling this ms flow on change of one field.
For that I am calling a Js on change of that field and through that Js I am calling the ms flow, so inside the js I am passing the ms flow url. But the problem is, when ms flow is moving from dev env to stage the url getting change every time.
Is there any way to get this link dynamically?.
Categories:
  • Teska.chawla Profile Picture
    Teska.chawla 156 on at
    MS flow HTTP request Link getting change from one environment to another.
    Do one thing. Create environment variable for that link in all your environments. 
    And in JS function, retrieve the value from the environment variable. 
    It will help in not changing the JS every time you move your flows. 
    You just have to change the value of environment variable. That's it.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,246 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans