Salesforce

Salesforce Apex System.TypeException – Cannot have more than 10 chunks in single operation. Please rearrange the data to reduce chunking.

Solution: Please rearrange the data to reduce chunking. When I am trying to insert parent and child in same transaction while preparing the list of records to be inserted in a loop, I am getting this error as System.TypeException “Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce […]

Salesforce

Salesforce Quick bytes / Cheat Sheet

When we had issue with one of the users complaining about his access, we can find easily whether user has access or not with below SOQL SELECT RecordId,HasReadAccess,HasEditAccess FROM UserRecordAccess WHERE UserId=’00541000005yQ1V’ AND RecordId IN (‘5001L00001J9OC4QAN’) Salesforce NOOVERRIDE=1Use  /e?nooverride=1 for classicUse /edit?nooverride=1 for lightning edit Use /view?nooverride=1 for lightning record view