+ Start a Discussion
Akis AthanasiadisAkis Athanasiadis 

delete child record

I want to create a process that will behave as the master detail relationship.
I cannot use the master detail relationship though due to operational reasons.
I have the Maintenance_Fees__c object which automatically creates a Contract_Renewal__c record. In the Contract_Renewal__c I have created a lookup field towards the Maintenance_Fees__c.
So what I need is whenever a maintenance fee is deleted, if there is a contract renewal record which is connected to this maintenance fee, then this record should also be deleted.
Khan AnasKhan Anas (Salesforce Developers) 
Hi Akis,

Greetings to you!

You can do it through Process Builder and Visual Workflow. Please refer to the below link which might help you further with the above requirement.


You can also write a trigger for the same:


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas