Skip to main content
I have some rollup summary fields with sum,min,max,count in one standard object now i want to delete that fields but i want to continue that all sum,count,min,max functions. 

Before I'm going to delete the rollup summary fields. I want to update the rollup fields with trigger. The question is i want to write a trigger with using Count,Sum,Max  events. The parent object is Opportunity and the child object is RSVP and here parent is a standard and child is custom. Finally the updating fields was

1.2015 Event Attended SMC(Count RSVP)

2.2015 Summit RSVP Yes(Count RSVP)

3.2016 Event Attended(Count RSVP)

4.2016 Non-SMC Summit Attendance(Count RSVP)

5.2016 Summit RSVP Yes?(Count RSVP)

6.Attended RSVP Count(Sum RSVP)

7.Attended RSVP Count SMC(Count RSVP)

8.Events Attended(Sum RSVP)

9.Last Event Attendance(Max RSVP)

10.Last Research Exposure(Max RSVP)

11.RSVP - Summit(Sum RSVP)

12.RSVP - Webinar(Sum RSVP)

I want to write a trigger to update the above fields with in single trigger.
1 answer
  1. Sep 8, 2021, 2:08 PM
    Hi Venkey,

    If most of the fields were couting RSVP why do we need these many fields. Can you please elobrate more on each field . What records needed to be counted in RSVP object.

    The developer community recommends providing any attempts/code you’ve started, any errors you’re getting, or where exactly you’re struggling in achieving this while posting a question.

    Thanks,

     
0/9000