Make a URL dynamic

NiloferS
Tera Contributor

https://exampletest.service-now.com/$pa_dashboard.do?sysparm_dashboard=4756****dbc4bc103450****d3961...

 

This URL leads to a dashboard on test instance. How to make this URL a dynamic URL for dev and prod instances. I am making use of this URL in a client script.