Batch Apex – Example 3
Use Case:(Database.Stateful and Outbound functionality Use)Create a batch class which would:Update all the account records owner to some new owner. (Example, Previous…
Use Case:(Database.Stateful and Outbound functionality Use)Create a batch class which would:Update all the account records owner to some new owner. (Example, Previous…
Use Case:Chaining of Queueable JobsWhen a new Lead is inserted,Create an account with Name, Industry and BillingAddress same as Lead's Company,…
Use Case:Create a batch class which would:Create a Task to review opportunity for all the opportunities irrespective of their StageName.Tasks should…
Use Case:Mixed DML Error example -Pre-requisite: Create a Public Group with API name ‘All_Users’. Create a Chatter Group (CollaborationGroup) with name…
Use Case:Pre-requisite: Create a permission set with API name Sales_User_Permissions.Whenever a new user is created with profile Custom: Sales Profile, assign the permission…
Things to Remember while working with Queueable Apex: Queueable class can contain member variables of non-primitive data types, such as sObjects…
Things to Remember while working with Batch Apex: Use Batch Apex only if you have more than one batch of records…
Things to Remember while working with Future Methods: Future annotation must be static methods and can only return a void type.The…
Use Case:Create a batch class to update Contacts:Description of Contact should be updated with“Title of AccountName : Account’s Description“Contact which does…
Use Case:Pre-requisite: Create a permission set with API name Sales_User_Permissions.Whenever a new user is created with profile Custom: Sales Profile, assign the permission…