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
ADC Test UserADC Test User 

Stop or postpone the recalculation of a roll-up summary field

 

I have a custom object which has a field which is the data type Master-Detail(account).  I have several currency fields in that custom object.   I have created on Account several roll-up summary fields based on the fields within my custom object.  I have about 100,000 which I need to re-insert daily (we delete all the entries from the previous day).

 

 

What I'm looking for is this: Is there a way to disable the roll-up summary field recalculations until my Apex/Soap code has completed and processing is finished with all the insertions and then force the recalculation?

  

 

Thanks in advance.

 

 

 

 

 

 

 

sforce2009sforce2009

As per my knowledge, you can not disable a rollupsummaryfield. You can use a trigger instread.

ADC Test UserADC Test User

Thank you for your response.