Write a trigger whenever Opportunity is deleted the corresponding Account and Contact should be deleted uses of Apex trigger in Salesforce | Write a trigger on Opportunity to delete corresponding Account and contact of opportunity using Apex trigger in Salesforce

Apex Triggers

Apex can be invoked by using triggers. Apex triggers enable you to perform custom actions before or after changes to Salesforce records, such as insertions, updates, or deletions.

Create Apex Trigger

Step 1:- Create Apex Trigger : OpportunityDeleteTrigger.apxt

OpportunityDeleteTrigger.apxt [Apex Trigger]

Final Output → To get source code live demo..

--

--

Easy to learn step-by-step online tutorial by www.w3web.net

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vijayk

Vijayk

Easy to learn step-by-step online tutorial by www.w3web.net