Home > Forum > Rules, JS, SQL > URL for current Instance

URL for current Instance
0

Is there a simple way to get the URL of the current instance?

Use Case:
In a specific step a user can create a ticket (via menu action) in a 3rd party app (REST POST). In the request body of the rest call I create the json and want to submit also the url for this instance.

Thanks!
Ernst

MVP

Hi Ernst,
solution, which i'm currently using:
1. Create a Global Constant let's call it Hostname, and make it specific per environment, like https://companydev, https://companytest, https://companyprod
2. Using that constant create a Global Business rule like the one attached - using concat create whole url, in my case its using 3 parameters, but you could hardcode database id and app id if it won't be global for example.

In reply to: Maksymilian Stachowiak

Hi Ernst,
solution, which i'm currently using:
1. Create a Global Constant let's call it Hostname, and make it specific per environment, like
https://companydev, https://companytest, https://companyprod
2. Using that constant create a Global Business rule like the one attached - using concat create whole url, in my case its using 3 parameters, but you could hardcode database id and app id if it won't be global for example.

Great! Thank you very much!
Ernst

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.