Trigger Scenario: A trigger on Account to prevent record deletion if Annual Revenue is greater than 50000

 Scenario:

Write a trigger on Account to prevent record deletion if Annual Revenue is greater than 50000. If Annual Revenue is more than 50000 it should throw error.

AccountRevenueTrigger : Trigger


AccountRevenueTriggerHandler: Class














Comments

Popular posts from this blog

Trigger Scenario 8 : Preventing the users to create Duplicate Accounts