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
SFDC DummySFDC Dummy 

tracing formula field value on particular date

Hi all

How to solve this Requirment

i have a custom object having date field and formula field...when i am creating record on custom object i have selected date ans some required fied then click on save for creating record then formula field value automaticallu updated.simillar i have craeted lot up record..how to track datewise formula field....means on particular date what is the formula field value..
Saikishore Reddy AengareddySaikishore Reddy Aengareddy
Create some object something called log or history where the parent would be your existing custom object. Create a batch apex/scheduler and run it on nightly basis which would query records from your custom object and create entries into newly created log/history object with the formula field value.
SFDC DummySFDC Dummy
can you share some sample code for batch class/schedular class with more clarification