February 7, 2021

How to set avatar image to the Embedded Chat in Salesforce?

Set the URL in embedded_svc.settings.avatarImgURL to set avatar image to the Embedded Chat in Salesforce.

Sample Code:
embedded_svc.settings.avatarImgURL = 'URL_Of_The_Image';


2 comments:

  1. Hello
    i added below code
    window._snapinsSnippetSettingsFile = (function() {
    console.log("Snippet settings file loaded."); // Logs that the snippet settings file was loaded successfully

    embedded_svc.settings.avatarImgURL = '/resource/1628920401000/avatat';



    })();

    image was uploaded in static resource
    still image not got rendered

    ReplyDelete