As SO will change their URL from Online2,Online3 etc to App.superoffice.com, I am tring to change the hardcoded URLs that we have in CRMScripts, both as linkes in emails and as redirects. When using a trigger I can use, for example, GetProgramCustomer to get the URL for the current instanse. I was told that this would work after the URL change as well.
But, the issue is when I use webhooks. When trying to access the URL that way, I dont get the first part i.e. online2, online3 etc, i only get the context. Is there any way to get around this issue without hardcoding the URL, so the URL will change later on as well?
Alle Svar (1)
You can retrieve the correct endpoint for a tenant using the state api (docs)
For example;
https://online.superoffice.com/api/state/Cust1990
{
"ContextIdentifier": "Cust1990",
"Endpoint": "https://online3.superoffice.com/Cust1990",
"State": "Running",
"IsRunning": true,
"ValidUntil": "2026-01-21T15:59:46.5788702Z",
"Api": "https://online3.superoffice.com/Cust1990/api",
"Version": "Release_11.8_2026.01.13-01"
}