Skip to content
Apex Step By Step
  • Salesforce Concepts
    • Apex Best Practices
    • Trigger Context Variables
  • Triggers
  • Asynchronous Apex
    • Future Methods
    • Batch Apex
    • Queueable Apex
    • Apex Scheduler
  • Projects
  • Write Us
Menu Close
  • Salesforce Concepts
    • Apex Best Practices
    • Trigger Context Variables
  • Triggers
  • Asynchronous Apex
    • Future Methods
    • Batch Apex
    • Queueable Apex
    • Apex Scheduler
  • Projects
  • Write Us

Salesforce apex

  1. Home>
  2. Salesforce apex

Batch Apex – Example 3

  • Post category:Batch Apex
  • Post published:December 27, 2020
  • Post comments:0 Comments

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…

Continue ReadingBatch Apex – Example 3

Queueable Apex – Example 2

  • Post category:Queueable Apex
  • Post published:June 29, 2020
  • Post comments:0 Comments

Use Case:Chaining of Queueable JobsWhen a new Lead is inserted,Create an account with Name, Industry and BillingAddress same as Lead's Company,…

Continue ReadingQueueable Apex – Example 2

Batch Apex – Example 2

  • Post category:Batch Apex
  • Post published:June 14, 2020
  • Post comments:0 Comments

Use Case:Create a batch class which would:Create a Task to review opportunity for all the opportunities irrespective of their StageName.Tasks should…

Continue ReadingBatch Apex – Example 2

Future Methods – Example 2

  • Post category:Future Methods
  • Post published:June 6, 2020
  • Post comments:0 Comments

Use Case:Mixed DML Error example -Pre-requisite: Create a Public Group with API name ‘All_Users’. Create a Chatter Group (CollaborationGroup) with name…

Continue ReadingFuture Methods – Example 2

Queueable Apex – Example 1

  • Post category:Queueable Apex
  • Post published:May 24, 2020
  • Post comments:0 Comments

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…

Continue ReadingQueueable Apex – Example 1

Queueable Apex

  • Post category:Queueable Apex
  • Post published:May 23, 2020
  • Post comments:0 Comments

Things to Remember while working with Queueable Apex: Queueable class can contain member variables of non-primitive data types, such as sObjects…

Continue ReadingQueueable Apex

Batch Apex

  • Post category:Batch Apex
  • Post published:May 23, 2020
  • Post comments:0 Comments

Things to Remember while working with Batch Apex: Use Batch Apex only if you have more than one batch of records…

Continue ReadingBatch Apex

Future Methods

  • Post category:Future Methods
  • Post published:May 23, 2020
  • Post comments:0 Comments

Things to Remember while working with Future Methods: Future annotation must be static methods and can only return a void type.The…

Continue ReadingFuture Methods

Batch Apex – Example 1

  • Post category:Batch Apex
  • Post published:May 22, 2020
  • Post comments:0 Comments

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…

Continue ReadingBatch Apex – Example 1

Future Methods – Example 1

  • Post category:Future Methods
  • Post published:May 20, 2020
  • Post comments:0 Comments

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…

Continue ReadingFuture Methods – Example 1

Recent Posts

  • Trigger – Example 11
    August 27, 2023/
    0 Comments
  • Project#1: Event Registration Management System
    June 4, 2023/
    1 Comment
  • Trigger – Example 10
    May 29, 2023/
    0 Comments
  • Batch Apex – Example 3
    December 27, 2020/
    0 Comments
  • Apex Scheduler – Example 2
    December 25, 2020/
    0 Comments

Scenarios

  • Asynchronous Apex
  • DWQA Ask Question
  • DWQA Questions
  • Integration
  • Privacy Policy
  • Projects
  • Salesforce Apex Practice Examples
  • Triggers
  • Write Us

Contact Info

  • Email:contact@apexstepbystep.comOpens in your application
  • Website:apexstepbystep.com

INFORMATION

  • Privacy Policy

Please share this