Create an Apex Trigger to Update Industry Field?

Develop an Apex Trigger so that every time any account is inserted then set the value of the Industry field to Education. Also, check if the Description is blank then set the value for the description field to “Account Description is blank”

Table of Contents

Introduction to scenario

→ Apex Trigger 1
Develop an Apex Trigger so that every time any account is inserted then set the value of the Industry field to Education. Also, check if the Description is blank then set the value for the description field to “Account Description is blank

  1. Industry = Education
  2. Description = Account Description is blank if Description is null

Hands on


					
				

Dispatcher Class


					
				

Handler Class


					
				

Outcome



Resources

Vaibhav Kumar
Vaibhav Kumar
Articles: 6

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Panther Schools

Subscribe now to keep reading and get access to the full archive.

Continue reading