Retrieve interaction participant data from Salesforce Lightning Component

Hello everyone,
I created a Lightning component to manage the Genesys events inside Salesforce (as interactions, chat etc.), following thins structure: https://github.com/MyPureCloud/purecloud-for-salesforce-examples/tree/master/src/Lightning%20Experience/events-in-salesforce
Inside the PCSalesforceEventsExampleController.js , 'var eventData' gets the interactions Params, including the type and connection state:

onClientEvent: function (component, message, helper) {

  •    var eventData = message.getParams();*
    
  •    if (eventData) {*
    
  •        var message = JSON.stringify(eventData);*
    
  •        helper.outputToConsole(component, message);*
    
  •        if(eventData.type === 'Interaction' && eventData.data.id) {*
    
  •            component.set("v.interactionId", eventData.data.id );*
    
  •        }*
    
  •    }*
    
  • },*

EventData is able to get just few 'standard' information.
Is there a way to pass custom Participant Data I setup in the flow, inside this Salesforce structure?

Thank you in advance.

Best regards,
Benedetto Corona

Yes, you should be able to include custom participant data in the interaction client events by defining custom interaction attributes in the Client Settings (Configure client events - Genesys Cloud Resource Center).

I hope that helps.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.