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

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings