Activity Forums Salesforce® Discussions Can we use formula field in SOQL query in Salesforce?

  • Marziya

    Member
    April 17, 2020 at 12:46 PM

    Hii Ayush,
    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. … Also note that sObject fields that contain formulas return the value of the field at the time the SOQL or SOSL query was issued.

  • [adinserter block='9']
  • Anjali

    Member
    April 17, 2020 at 12:58 PM

    Yes, we can use formula field in SOQL query.

Log In to reply.