+ Start a Discussion
rajasfdcrajasfdc 

what is the way to use trigger in place of roll-up summaries?

what is the way to use trigger in place of roll-up summaries?i mea to say.i created a studnt object.with fields stdname stdnt number .i wish to dispaly no.of student records in at the time of after record created.with out using of roll-up summaries by using triggers.how to done this.please clarify.thanks in advacne.

AdrianCCAdrianCC

Hello,

 

Rollups are used when you have a master-detail relationship and you want to use information from the child records on the master one, like for instance how many children does it have - COUNT. 

 

IF the relationship is just a simple Lookup then you can use a trigger. 

 

Why can't you use a master-detail relationship and rollups? The trigger should be the last option.

 

To which object is your Student related? 

 

Thank you,

Adrian