
Table of Contents Prerequisite Create a Custom Field on the Account Object “Number of Contacts” with a Number Data Type that does not have any decimal point in it. Introduction to Apex Trigger Scenario Requirement (Roll-up Summary Trigger) Develop a…

Table of Contents Introduction to Scenario The business got to know that there are multiple accounts with the same name and rating. Now, as a developer, you need to make sure that no new duplicates are being created with the…

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 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.…

When the Account is Created, create a Task Record under that Account and assign the Task to the Account Owner. Use the below information

Table of Contents Introduction to scenario → Apex Trigger Scenario 7 Develop an Apex Trigger so that when an opportunity is created and the account is blank, create a task under Opportunity. Hint: – AccountId == null Subject – Opportunity…

Develop an Apex Trigger so that every time an account is created or updated, the Value of the Billing Address is to the Shipping Address.