March 16, 2021

Passing Custom Field Value to Chat Transcript object from Embedded Service Chat in Salesforce

Custom Field:
 

Code Snippet:
        embedded_svc.settings.extraPrechatFormDetails = [ {
            "label": "Skill Selected",
            "value": "Sales",
            "transcriptFields":[ "Skill__c" ],
            "displayToAgent": true
        } ];


Output:
 


4 comments:

  1. Hello, I need to add Contact Custom field to embedded service I can see it is editable on Contact but I am not able to add it in Prechat Page, I can see in the list but when I add it nothing gets add. It would be very helpful if you can Guide me

    ReplyDelete
    Replies
    1. Once you add, it takes few mins to show it on the pre chat

      Delete
  2. Where did you add the snippet code for this?

    ReplyDelete
    Replies
    1. This is for Embedded Chat Service. I added it to the existing code snippet from the Embedded Chat Service.

      Delete