Batch Class to Update Record’s Field -- w3web.net

Using batch class to update record’s field and send email notification in finish method on custom Object in Salesforce

Hey guys, today in this post we are going to learn about how to write batch class to update records/fields and send email notification in finish method on custom Object in Salesforce

Real time scenarios:- Write a batch class on Custom Object(scoreCard__c) to update Record’s Field through Anonymous Window in Salesforce.

Files we used in this post example

batch_scoreCardEmailUpdate.apxc Apex Class Controller It is used for update Record’s Field through Anonymous Window in Salesforce

Live Demo

batch class to update a field on custom object in salesforce -- w3web.net

Other related post that would you like to learn in lightning component.

Step 1:- Create Apex Class : batch_scoreCardEmailUpdate

From Developer Console >> File >> New >> Apex Class

batch_scoreCardEmailUpdate [Apex Class Controller]

Create a instance of batch class and execute Anonymous Window in Salesforce

Step 2:- Open Apex Class >> batch_scoreCardEmailUpdate >> Debug >> execute batch class in Anonymous Window in salesforce

From Developer Console >> Debug >> execute Anonymous Window

For Anonymous Window

batch class to update a field on custom object in salesforce -- w3web.net

Further post that would you like to learn in lightning component.

1 thought on “Using batch class to update record’s field and send email notification in finish method on custom Object in Salesforce”

Leave a Comment