+ 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