Get URL in Webhook/CRMScript

lock
push_pin
done
Answered
1

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?

10 h, 32 m ago | 03:48 PM

All Replies (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"
}
10 h, 26 m ago | 03:55 PM
Oh, thats perfect, thank you!! But will the API endpoint also change URL when SuperOffice does? Or will https://online.superoffice.com/api/state/Cust1990 still be online.SuperOffice, instread of app.SuperOffice etc? :D
9 h, 58 m ago | 04:22 PM
Not sure, but given how much currently is depended on the online.customer.com subdomain, I would assume that will be something that stays for the foreseeable future
9 h, 31 m ago | 04:50 PM

Add reply