Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Because send2crm Send2CRM allows a Visitor record to be related to more than one parent record, and to be related using custom lookup fields, some additional configuration may be required.

...

Lead and Contact relationships are included out-of-the-box with send2crmSend2CRM, no additional steps are necessary for these objects.

...

Code Block
languagejava
/**
 * Trigger to cascade delete send2crmSend2CRM Visitors.
 */
trigger CustomObjectCascadeTrigger on CustomObject__c (after delete) {
  // Cascade delete all related Visitors, unless still related to other records.
  // No deletion will occur if cascade delete is disabled by custom setting.
  send2crm.VisitorHelper.cascadeDeleteVisitors(Trigger.oldMap.keySet());
}

...