11-05-2024 12:35 PM
Hello,
I am looking for an API or Desktop SDK method to retrieve the organization ID immediately after the custom web component loads in the browser, or whenever the connectedCallback()
is called by the browser. code snip is taken from the code example.
I need to execute some logic based upon the organizationId in connectedCallback()
method.
Thank you!
11-05-2024 04:37 PM
OrgID is mentioned as part of STORE.agentContact.taskMap, does this let you get what you need? https://developer.webex-cx.com/documentation/guides/desktop
11-05-2024 10:43 PM
@bill.king1 yes you are right OrgID is mentioned as part of STORE.agentContact.taskMap. but i want OrgId right after the login and before the selecting the team and extension/dial number.
11-06-2024 04:10 AM
Can you use Get User by ID somehow, since that also returns orgID?
https://developer.webex-cx.com/documentation/users/v1/get-user-by-id
11-06-2024 06:32 AM
@bill.king1 This API requires the organization ID (orgId) as an queryParameter for the call, but the response payload of this API will also include the orgId.
11-06-2024 12:02 PM
My mistake. Can something technically outside of contact center help you then, like this? https://developer.webex.com/docs/api/v1/organizations/list-organizations
11-06-2024 10:18 PM
I tried this API and compared the response with the orgId, but while the names match, the IDs do not. I'm looking for the correct organization ID specifically for the organization profile.
11-07-2024 04:45 AM
Out of curiosity, did you try and base64 decode the response you got as mentioned here to see if it matches what you have?
https://developer.webex.com/docs/api/v1/identity-organization
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide