Legacy Dev Forum Posts

 View Only

Sign Up

Retrieve interaction participant data from Salesforce Lightning Component

  • 1.  Retrieve interaction participant data from Salesforce Lightning Component

    Posted 06-05-2025 19:00

    Benedetto_Corona | 2021-12-08 09:04:33 UTC | #1

    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


    Junji_Sawada | 2021-12-08 17:28:16 UTC | #2

    Yes, you should be able to include custom participant data in the interaction client events by defining custom interaction attributes in the Client Settings (https://help.mypurecloud.com/articles/configure-client-events/).

    I hope that helps.


    system | 2022-01-08 17:29:17 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 12884