Skip to content

Commit 7e969d5

Browse files
Add embedded messaging initialization script
1 parent f09af3b commit 7e969d5

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

CWC/SDB3/CWC03.html

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
<html>
2-
<head></head>
3-
<body></body>
2+
<head><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"></head>
3+
<body>
4+
<script type='text/javascript'>
5+
function initEmbeddedMessaging() {
6+
try {
7+
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'
8+
9+
embeddedservice_bootstrap.init(
10+
'00DSB00000da1NJ',
11+
'CWC03_External',
12+
'https://orgfarm-46c4c41fb0.test1.my.pc-rnd.site.com/ESWCWC03External1763538415877',
13+
{
14+
scrt2URL: 'https://orgfarm-46c4c41fb0.test1.my.pc-rnd.salesforce-scrt.com'
15+
}
16+
);
17+
} catch (err) {
18+
console.error('Error loading Embedded Messaging: ', err);
19+
}
20+
};
21+
</script>
22+
<script type='text/javascript' src='https://orgfarm-46c4c41fb0.test1.my.pc-rnd.site.com/ESWCWC03External1763538415877/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
23+
</body>
424
</html>

0 commit comments

Comments
 (0)