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

Trigger which fires every 24 hours after created date

Hi, i have a field called Charges__c which would be 0 when record is created.

After 24 hours of record creation charges__c should be updated to a value(assume 200 then 0+200 = 200).

Later after 48 hours charges__c should be updated to(200+200=400).
This cycle is repeated every 24 hours. Any Suggestions ? 
You can use a formula to obtain that with the need to update all your records each 24 hours.

You can also implement the same logic in an apex class and schedule it on daily basis.