[SalesForce] How to get previous value in formula field

In Account object I am having a formula field with address details and its related with other object (Lookup field), if any update happens means it should be reflected in account object based if the status is Active otherwise the previous value should be reflected.

Is it possible?

Best Answer

Formula field calculate value at runtime so it can't support your usecase but you can use following workaround

  1. Create another field text type.
  2. Fill that field using trigger.
  3. Refer that field in your formula field.
Related Topic