Tag Apex Trigger

Send an Email using Apex Trigger?

Table of Contents Introduction to Apex Scenario Develop an Apex Trigger to send the email to the Account owner when the Account is Created within Salesforce and Account does not have the phone and industry field populated. Also, create a…

Handler & Dispatcher in Apex Triggers?

So far in the previous blogs/videos we have only talked about how to write the apex trigger and we have developed all the code inside the apex trigger. However, as a best practice, we should not write the code inside…

How to Calculate discount for opportunity?

How to Calculate discount for opportunity in Salesforce based on percentage field? Table of Contents Introduction to scenario → Apex Trigger 5 Prerequisite Create a Custom field on Opportunity “Discount” and the data type of this field should be percent.…

Update Account Billing in Shipping address?

Apex Trigger Scenario → Apex Trigger 2 Develop an Apex Trigger so that every time when any account is created or updated then Set the Value of the Billing Address is to Shipping Address. Shipping Address ShippingStreet ShippingCity ShippingState ShippingPostalCode…