sky_xu | 2023-07-07 09:47:38 UTC | #1
Hi All,
May i ask anyone has javascript sample to get participate attributes data from interactions based on platform javascript SDK which be used as clients application widget. I had used the sample from "https://github.com/MyPureCloud/client-app-sdk/tree/master/examples/agentInteractionsDemo" , but no ideas how to get the attributes from the interactions. Tried to search it on google and this form, but not find the solutions.
Hemanth | 2023-07-07 11:16:53 UTC | #2
Hi Sky_xu
Can you provide what is the existing API you are using for the interactions?
BR Hemanth
John_Carnell | 2023-07-07 14:30:13 UTC | #4
crespino | 2023-07-10 16:00:02 UTC | #5
The Client Apps SDK is primarily designed to allow the embedded web application to interact with the Genesys Cloud UI. To get to participant data for a conversation you'll also have to use the Platform SDK: https://developer.genesys.cloud/devapps/sdk/javascript
After you initialize and authenticate the Platform SDK, then you can use this API request to get a specific conversation, by id, and it will contain the participant attribute data: https://developer.genesys.cloud/devapps/sdk/docexplorer/purecloudjavascript/ConversationsApi#getConversation
This post was migrated from the old Developer Forum.
ref: 20888