Asynchronous Processes in Salesforce
The maximum number of Asynchronous Processes per a 24-hour period is 250,000 or the number of user licenses in your organization multiplied by 200, whichever is greater. Asynchronous Apex: Batch ....
The maximum number of Asynchronous Processes per a 24-hour period is 250,000 or the number of user licenses in your organization multiplied by 200, whichever is greater. Asynchronous Apex: Batch ....
If "With Sharing" keyword is used in the Apex Class, then the SOQL won't run in System Mode. It will run in User Mode and respect the Restriction Rules configured. ....
Sample Code:Visualforce Page:<apex:page controller="DatabaseGetUpdatedController"> <apex:pageBlock> <apex:pageBlockTable value="{!listAccounts}" var="acc"> <apex:column headerValue="Name">{!acc.Name}</apex:column> <apex:column headerValue="Industry">{!acc.Industry}</apex:column> <apex:column ....
Syntax:Database.GetUpdatedResult r = Database.getUpdated( 'Object API Name', StartDateTime, EndDateTime);Sample Code:Database.GetUpdatedResult r = Database.getUpdated( 'Account', Datetime.now().addDays( -1 ), Datetime.now());System.debug( 'Updated Records result is ' + r );To get Ids:Database.GetUpdatedResult r = ....
Syntax: public class ClassName implements Queueable { //constructor public ClassName() { } public void execute( QueueableContext qc ) { } } To execute: System.enqueueJob( new ClassName() );
Syntax for Future method: public class className { @future public static void methodName() { } } Syntax for Future method with callout: public class className { @future(callout=true) public static void ....
To Setup Inbound Email Service, check the following link https://www.infallibletechie.com/2012/12/inbound-email-creating-record-using.html Sample Apex Class: Apex Class: global class OrderCreation implements Messaging.InboundEmailHandler { global Messaging.InboundEmailResult handleInboundEmail( Messaging.InboundEmail email, Messaging.InboundEnvelope env ) { ....
Apex Class: public class DynamicRowsController { @AuraEnabled public static String updateAccts( List < Account > listAccts ) { try { ....
Sample Code: Apex Class: public class SampleAuraController { @AuraEnabled public static List < Account > fetchAccts() { return [ SELECT Id, Name, Industry, Is_Active__c FROM Account LIMIT 10 ]; } ....
Sample Code: Apex Class: public class AccountListController { @AuraEnabled public static List < Account > fetchAccts() { return [ SELECT Id, Name, Industry, Type, ....