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.