You need to sign in to do that
Don't have an account?
WEIdata
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.
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.