• WEIdata
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 5
    Replies
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.
Hello- As soon as I create a simple SUM rollup summary for a custom object, the trigger I created to insert records for said custom object stops working. Also, DemandTools stopped being able to merge duplicate records on the same custom object.

Here is the trigger:

Trigger createPages on Contact (after insert, after update) {
List<Pages__c> p = new List <Pages__c> ();
For (Contact newContact: Trigger.New)
If (newContact.Pages__c  > 0) {
p.add (new Pages__c (
Pages_Read__c = newContact.Pages__c,
Reading_Detail__c = newContact.Pages_Detail__c,
Reader_Type__c = newContact.Reader_ID__c,
Contact_Name__c = newContact.Id ) ) ;
Insert p;
}
}
Try {
Insert pToInsert;
} catch (system.Dmlexception e) {
System.debug (e);
}
}
Any help with figuring out what the issue is here will be much appreciated. Thank you!

Trigger createPages on Contact (after insert, after update) {
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.Name ) ) ;
pToInsert.add(p);

}
}
Try {
Insert pToInsert;
} catch (system.Dmlexception e) {
System.debug (e);
}
I am using the non-profit edition of SalesForce. It is not linked to when I click on the + to show all labels. I realize I can work with Sites from scratch in my developer section, but I am specifically looking to use the Studio tool.
I am looking to build a counter that will use a tallied total from a SalesForce field and publish this total onto my organization's website.

I hope to create a counter similar to this: http://118forboston.com/. Animation is not a priority. Automatic updates would be useful but not necessary.

We have a web-to-contact app that will dump the <number of miles run> into a contact record custom field. I just don't know how to get the results back out and onto the website.

Using the nonprofit platform.

Thanks in advance!
Hello- I am new to the sites feature and hastily created a domain name I cannot use (test1234.force.com). Is there any way at all to change this?
I am using the non-profit edition of SalesForce. It is not linked to when I click on the + to show all labels. I realize I can work with Sites from scratch in my developer section, but I am specifically looking to use the Studio tool.
Hello- As soon as I create a simple SUM rollup summary for a custom object, the trigger I created to insert records for said custom object stops working. Also, DemandTools stopped being able to merge duplicate records on the same custom object.

Here is the trigger:

Trigger createPages on Contact (after insert, after update) {
List<Pages__c> p = new List <Pages__c> ();
For (Contact newContact: Trigger.New)
If (newContact.Pages__c  > 0) {
p.add (new Pages__c (
Pages_Read__c = newContact.Pages__c,
Reading_Detail__c = newContact.Pages_Detail__c,
Reader_Type__c = newContact.Reader_ID__c,
Contact_Name__c = newContact.Id ) ) ;
Insert p;
}
}
Try {
Insert pToInsert;
} catch (system.Dmlexception e) {
System.debug (e);
}
}
Any help with figuring out what the issue is here will be much appreciated. Thank you!

Trigger createPages on Contact (after insert, after update) {
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.Name ) ) ;
pToInsert.add(p);

}
}
Try {
Insert pToInsert;
} catch (system.Dmlexception e) {
System.debug (e);
}
I am using the non-profit edition of SalesForce. It is not linked to when I click on the + to show all labels. I realize I can work with Sites from scratch in my developer section, but I am specifically looking to use the Studio tool.
Hello- I am new to the sites feature and hastily created a domain name I cannot use (test1234.force.com). Is there any way at all to change this?