0

I use Snap-Ins chat with a Pre-Chat form to connect an external site with Salesforce Service Console which uses Omni-Channel chat.

From the user side:

I fill the prechat form only with first and last name and start a conversation with a service consultant. Only name fields are needed, however email, phone and subject fields are also possible to fill:

enter image description here

From the Salesforce Side:

My Pre-Chat configuration:

enter image description here

After accepting the conversation in the Omni Channel window, I can now hold a conversation. Sadly, there is no case assigned to conversation's transcript - after querying newly created cases in a Developer Console it looks like it's not even created at all.

enter image description here

Whan can be a reason for such a behavior?

I don't even see a way to debug it. liveagent.enableLogging() does not work with Snap-Ins code from the client's side. When setting debug logs for a Live Agent User - I don't receive anything.

1 Answer 1

1

You have two options, or set the subject as required or prepopulate the field in the code.

embedded_svc.settings.extraPrechatFormDetails = [{
            "label": "issue",
            "value": "Subject Case",
            "displayToAgent": true
        }];

    embedded_svc.settings.extraPrechatInfo = [{
        "entityName": "Contact",
        "showOnCreate": true,
        "linkToEntityName": "Case",
        "linkToEntityField": "ContactId",
        "saveToTranscript": "ContactId",
        "entityFieldMaps": [{
            "isExactMatch": true,
            "fieldName": "Email",
            "doCreate": true,
            "doFind": true,
            "label": "Email"
        }, {
            "isExactMatch": true,
            "fieldName": "AccountId",
            "doCreate": true,
            "doFind": true,
            "label": "AccountId"
        }]
    }, {
        "entityName": "Case",
        "showOnCreate": true,
        "saveToTranscript": "CaseId",
        "entityFieldMaps": [{
            "isExactMatch": false,
            "fieldName": "Subject",
            "doCreate": true,
            "doFind": false,
            "label": "issue"
        }, {
            "isExactMatch": false,
            "fieldName": "Status",
            "doCreate": true,
            "doFind": false,
            "label": "Status"
        }, {
            "isExactMatch": false,
            "fieldName": "Origin",
            "doCreate": true,
            "doFind": false,
            "label": "Origin"
        }]
    }]
1
  • 2
    Hi Manukadi, could you flesh this out at all with some framing to help future askers understand your changes and where to apply them?
    – David Reed
    Commented Jun 17, 2019 at 13:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .