cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
352
Views
0
Helpful
7
Replies

WebEx contact center OrganizationID

uzair.anwar
Level 1
Level 1

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.

uzairanwar_0-1730838726501.png

 

Thank you!

7 Replies 7

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

@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.

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

@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.

My mistake. Can something technically outside of contact center help you then, like this? https://developer.webex.com/docs/api/v1/organizations/list-organizations 

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.

 
 

2024-11-07_11-09-42.png

 

 

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