Get URL in Webhook/CRMScript

lock
push_pin
done
Beantwoord
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?

9 u, 18 m geleden | 03:48 p.m.

Alles Antwoorden (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"
}
9 u, 11 m geleden | 03:55 p.m.
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
8 u, 44 m geleden | 04:22 p.m.
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
8 u, 16 m geleden | 04:50 p.m.

Reply toevoegen