If I am querying a formula field in
SOQL, then will it always return latest value based on data? If not then what value it will show?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Yes. Formula fields are calculated at the time of query, so they will calculate at runtime based on the currently saved values for that record.
Working with SOQL and SOSL Query Results states, in part (emphasis mine):