June 2021

Salesforce

Salesforce Inbound Email Service – Capturing From Address, To Address and Subject

Sample code:global class CreateEmailLog implements Messaging.InboundEmailHandler {    global Messaging.InboundEmailResult handleInboundEmail( Messaging.InboundEmail email, Messaging.InboundEnvelope env ) {           Messaging.InboundEmailResult result = new Messaging.InboundEmailResult();                   try {                        Inbound_Email__c objIE = new ....

Salesforce

System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: [] Salesforce PSR Creation

Error Message:{        "message": "field integrity exception",        "errorCode": "FIELD_INTEGRITY_EXCEPTION",        "fields": []}The creation of PSR(PendingServiceRouting) for external or queue-based routing from apex is not supported. It is applicable only for Skill based as ....

Salesforce

Salesforce Pre Chat for Embedded Service using Lightning Aura Component

Sample Code: Aura Component: <aura:component implements="lightningsnapin:prechatUI">     <lightningsnapin:prechatAPI aura:id="prechatAPI"/>     <aura:handler name="init" value="{!this}" action="{!c.onInit}" />     <aura:attribute name="startBool" type="Boolean" default="false"/>     <aura:attribute name="errorBool" type="Boolean" default="false"/>     <aura:attribute name="firstName" type="Boolean" default="false"/> ....