Apex error – ‘List has no rows for assignment to SObject’

The error “List has no rows for assignment to SObject” occurs when query doesn’t return any rows. Resolution   While a SELECT normally returns an array/list, these statements are using the shorthand syntax that assumes only one row is returned. What’s not obvious is that it also assumes that exactly one row is returned! Although this is …

Apex error – ‘List has no rows for assignment to SObject’ Read More »

Custom Live Chat Using Salesforce Live Chat REST API

PREFACE We may choose to build a custom live chat app using Salesforce Live Chat REST API. There may be below given reasons or any specific reasons: Custom Experience:- Header, Footer, Navigation, Offline Form, Pre-chat Form Security Reason:- Salesforce generated embedded service snippet code does not require authentication and works publicly. Also, the script may …

Custom Live Chat Using Salesforce Live Chat REST API Read More »