You need to sign in to do that
Don't have an account?
Andy Kallio 13
Admin struggling to set use embedded_svc.settings
Hello friends. Working with chat/embedded services for the first time. We are trying to first make a chat work in a community with this simple snippet. With this snippet we are able to initiate a chat session. So, on the surface it seems ok, but the pre-chat fields are not being set, and the contact matching and creation is not working.
The expected outcome is a new contact of certain record type if one is not already not found that has an exact match for email and recordtype.
The actual outcome is a new contact of a different recordtype than the one defined in this snippet.
My theory on why this is happening is that the recordtype that the record is being created with is the default record type of the 'Automated Process' user. However, it seems impossible to prove this because salesforce makes it impossible to see the profile configuration of Automated Process user.
Also, the pre-chat custom fields on livechattranscript are not being populated.
Any suggestions are appreciated.
Thanks!
The expected outcome is a new contact of certain record type if one is not already not found that has an exact match for email and recordtype.
The actual outcome is a new contact of a different recordtype than the one defined in this snippet.
My theory on why this is happening is that the recordtype that the record is being created with is the default record type of the 'Automated Process' user. However, it seems impossible to prove this because salesforce makes it impossible to see the profile configuration of Automated Process user.
Also, the pre-chat custom fields on livechattranscript are not being populated.
window._snapinsSnippetSettingsFile = (function() { console.log("Snippet settings file loaded."); // Logs that the snippet settings file was loaded successfully liveagent.enableLogging(); //console errors on this line. therefore have no logs in console. embedded_svc.settings.extraPrechatFormDetails = [{ "label":"First Name", "transcriptFields":["PreChat_First_Name__c"] }, { "label":"Last Name", "transcriptFields":["PreChat_Last_Name__c"] }, { "label":"Email", "transcriptFields":["PreChat_Email__c"] }, { "label":"ChatStartSite", "value":"ADR-Website", "transcriptFields":["Chat_Start_Site__c"], }, { "label":"Brand", "value":"Adrenaline", "transcriptFields":["Brand__c"], }, { "label":"RecordTypeId", "value":"0127F000000ESNFQA4", }]; embedded_svc.settings.extraPrechatInfo = [{ "entityFieldMaps": [{ "doCreate": true, "doFind": false, "fieldName": "LastName", "isExactMatch": false, "label": "Last Name" }, { "doCreate": true, "doFind": false, "fieldName": "FirstName", "isExactMatch": false, "label": "First Name" }, { "doCreate": true, "doFind": true, "fieldName": "Email", "isExactMatch": true, "label": "Email" }, { "doCreate": true, "doFind": true, "fieldName": "RecordTypeId", "isExactMatch": true, "label": "RecordTypeId" }], "entityName": "Contact", "saveToTranscript": "Contact", "showOnCreate": true }]; })();
Any suggestions are appreciated.
Thanks!
Error getting community user's to VM29 embeddedService:embeddedServiceManager.js:14 Error getting community user's to pre-populate snapins prechat fields.
I'm not sure what to do next.