Legacy Dev Forum Posts

 View Only

Sign Up

Custom Attributes in web-messenger

  • 1.  Custom Attributes in web-messenger

    Posted 06-05-2025 18:36

    Bhardwaj_Arushi | 2022-11-21 11:28:23 UTC | #1

    Hi, I have set the custom attributes using Database.set command under script tags just below the web-messenger deployment code snippet and also I have defined those variables in get-participant data block in inbound message architect flow. Still I am unable to retrieve their values when I use them in send response in message architect flow.

    Can someone please help on this? Or is there any specific place where I need to add the Database.set command for it to work.


    Angelo_Cicchitto | 2022-11-21 13:17:02 UTC | #2

    Hard to comment further at this point, better to raise a ticket with Genesys to help debugging. You could try to use that same command manually, from browser console, just to be sure that there's nothing in the initial page-load that may interfere:

    Genesys("command", "Database.set", { messaging: { customAttributes: { myKey: 'value' }}});

    Then try to retrieve the myKey attribute with Get Participant Data action and store in local State.MyKey variable.


    system | 2022-12-21 13:17:26 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 17297