Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Syntax for fetching Custom Attribute via Get Participant Data action

    Posted 03-16-2023 09:42

    Hi,

    We have set a custom attribute using the database.set command embedded in the code snippet for our Web Messenger deployment (which we have embedded on a web page).

    My question is, how exactly do we reference this data in the "Variable to Assign" field within a "Get Participant Data" action within the corresponding inbound Message flow in Architect? 

    I've seen multiple references from other posters and Genesys team members about doing this but have not found the exact syntax anywhere on how we'd actually reference the data we want to get.

    (database.set command from embedded web messenger code snippet.)

    Genesys("command", "Database.set", {
          messaging: {
          customAttributes: {
                memberId: "999999",
                dateOfBirth: "01011985"
      }
      }
    }
    

    #ArchitectureandDesign
    #Integrations

    ------------------------------
    Michael Rana
    Capital District Physicians Health Plan, Inc.
    ------------------------------


  • 2.  RE: Syntax for fetching Custom Attribute via Get Participant Data action

    GENESYS
    Posted 03-16-2023 09:53

    The variable name can be anything in the world.  Whatever you want to name the variable that will hold this value for you to use later in the flow.  Far more important is the attribute name field.  The name field is the exact, case-sensitive name of the attribute you want to get from the conversation, so it should either be memberId or dateOfBirth.



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: Syntax for fetching Custom Attribute via Get Participant Data action

    Posted 03-16-2023 10:12

    Thank you Melissa! My issue was confusing the two fields on the Get Participant Data action attribute form - I was trying to populate the custom attribute name into the Variable to Assign field instead of the other way around. It's working now. Thanks Again.



    ------------------------------
    Michael Rana
    Capital District Physicians Health Plan, Inc.
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources