Примеры файлов статических ресурсов для меню канала
Создайте файлы JavaScript для загрузки в качестве статических ресурсов и применения их на веб-сайте меню канала или сайте взаимодействий. Данный образец кода заполняет параметры предчата и добавляет логотип компании.
Для создания и редактирования статических ресурсов:
«Настройка приложения» И «Автор Apex»
Вы можете использовать файлы статических ресурсов JavaScript, включительно со строками, массивами, функциями JSON и JS для меню канала. Чтобы настроить файл кода, воспользуйтесь примером ниже.
Укажите _snapinsSnippetSettingsFile в объекте глобального окна.
В образце кода TestChatChannel является структурным нулем для уникального имени элемента меню канала, поэтому обновите его.
После завершения файла вернитесь в Встроенные статические ресурсы для получения инструкций по загрузке статических ресурсов.
Эта статья решила вашу проблему?
Оставьте свой отзыв, чтобы мы могли стать лучше!
Загрузка
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.