How to find Contact based on Phone Number instead of Email in Salesforce Embedded Service Deployment?

embedded_svc.settings.extraPrechatInfo = [ {
"entityFieldMaps": [ {
"doCreate": true,
"doFind": true,
"fieldName": "Phone",
"isExactMatch": false,
"label": "Phone"
}, {
"isExactMatch":false,
"fieldName":"FirstName",
"doCreate":true,
"doFind":false,
"label":"First Name"
}, {
"isExactMatch":false,
"fieldName":"LastName",
"doCreate":true,
"doFind":false,
"label":"Last Name"
}, {
"doCreate": true,
"doFind": false,
"fieldName": "Email",
"isExactMatch": false,
"label": "Email"
} ],
"entityName": "Contact"
}];

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store