
4 respostas
Hi Pooja, In Salesforce, when formula fields turn to true(OR changes) then it will not update the record in other words no DML is being performed on the record. That is why Lookup field remains same.
The workaround to this problem is, you can write an Apex Batch which will take those records as input which has created date more than 3 days and then checks if formula field is true then update Lookup field otherwise, do not change.
You can schedule your batch to execute at every 5 minutes or every day at night.
Let me know if this makes sense.
Thanks,
Amit Singh.