System.LimitException: Too many queueable jobs added to the queue
1. You can add up to 50 jobs to the queue with System.enqueueJob in a single transaction. 2. When chaining jobs with System.enqueueJob, you can add only one job from ....
1. You can add up to 50 jobs to the queue with System.enqueueJob in a single transaction. 2. When chaining jobs with System.enqueueJob, you can add only one job from ....
getAll() method can be used. 1. Create a Custom Metadata Type. 2. Create few records. Sample Code: Map < String, Test__mdt > mapCustomMetadataType = Test__mdt.getAll(); for ( String strKey : mapCustomMetadataType.keySet() ....
Use the following code to prevent certain Profile users to download files in Salesforce. Apex Classes that implements Sfc.ContentDownloadHandlerFactory interface will be triggered when the files are downloaded in Salesforce. ....
Apex Class: public with sharing class ExampleController { @AuraEnabled(cacheable=true) public static List < Account > fetchAccounts() { return [ SELECT Id, Name, Industry, ( SELECT Id, FirstName, ....
Sample Code: Apex Class: public class ForwardRecordToSFController { @AuraEnabled public static String forwardRecord( String recId ) { List < PartnerNetworkRecordConnection > checkConnection = [ SELECT Id FROM PartnerNetworkRecordConnection WHERE LocalRecordId ....
Check the following implementation for Auto Complete Search using Salesforce Lightning Web Component. Sample Code: Apex Class: public with sharing class AccountController { @AuraEnabled( cacheable = true ) public static List< ....
To check in Visualforce Page, check https://www.infallibletechie.com/2021/05/how-to-find-whether-impersonated-as.html Sample LWC Code: Apex Class: public with sharing class LoggedInUserCheckController { @AuraEnabled( cacheable = true ) public static ....
Visualforce Page: <apex:page controller="CommunityPageController"> Logged in As User? {!loggedInAsUserBool} </apex:page> Apex Controller: public class CommunityPageController { public Boolean loggedInAsUserBool { get; set; } ....
Sample Code: Assigning it to Permission Set: SetupEntityAccess objSEA = new SetupEntityAccess(); objSEA.SetupEntityId = '0CP4x000000Pd5y';//Id of the Custom Permission objSEA.ParentId = '0PS4x000002YEdd';//Id of the Permission Set insert objSEA; Assigning it ....
1. Enable Change Data Capture for Event Relation. 2. Create an Organization-Wide-Email Address. 3. Create the below trigger. rigger EventRelationChangeEventTrigger on EventRelationChangeEvent ( after insert ) { Map < Id, ....