Versions Compared

Key

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

...

S4S Cloud allows disabling cascade deletion by checking Disable Cascade Delete Visitors in the org-wide custom settings. This will retain Visitor and related records indefinitely.

...

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

If you added a custom identification relationship and would like to cascade delete Visitor records, an additional trigger will be required.

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

...