function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WEIdataWEIdata 

Demand Tools Ceases to Reparent Custom Object Child Records to Master Parent During Merge

This began to happen only after I added a declarative rollup summary that takes amounts from said custom object child record and rolls them up into a sum on the parent record. Here is the trigger that inserts the custom object record after the parent record is created or updated:

Trigger createPages on Contact (after insert, after update) {

if(checkRecursive.runOnce())
{List<Pages__c> p = new List <Pages__c> ();
For (Contact newContact: Trigger.New)

If (newContact.Pages_Read__c  > 0) {
p.add (new Pages__c (
Pages_Read__c = newContact.Pages_Read__c,
Reading_Detail__c = newContact.Pages_Detail__c,
Reader_Type__c = newContact.Reader_ID__c,
Contact_Name__c = newContact.Id ) ) ;
Insert p;

}}
}

I really need a rollup summary on Pages_Read__c for reporting purposes and every time I try, something fails. Any help would be greatly appreciated.