Posts

Showing posts from October, 2022

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

Image
  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

Trigger Scenario : When a new Contact is created for an existing Account then set Contact other phone as Account phone.

Image
  Trigger Scenario:  When a new Contact is created for an existing Account then set Contact other phone as Account phone. Trigger ClassToUpdateContactOtherPhone