Hot answers tagged

3 votes

Lookup Relationship to delete children records automatically when parent record is deleted

You can use Cascade Delete Feature. Cascade Delete Feature Provides Lookup Relationships the same cascading delete functionality previously only available to Master Detail Relationships However, be ...
  • 1,857
1 vote

Lookup Relationship to delete children records automatically when parent record is deleted

By using cascade-delete option you can able to delete the child records for lookup relationship and you need to contact salesforce support to enable cascade-delete feature. Delete this record also ...
1 vote
Accepted

If / then to set an Id - Invalid id

Text field values, when retrieved from the database (e.g. at the start of a trigger), will always be null or a non-empty string. In other words, your comparison should be: if(opp.Master_Opportunity__c ...
  • 451k

Only top scored, non community-wiki answers of a minimum length are eligible