Study for the Salesforce Platform Developer Exam. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


True or False? You can reference cross-object formula fields that are calculated using dynamic variables like TODAY or NOW.

  1. True

  2. False

  3. Only in reports

  4. Only in workflows

The correct answer is: False

The correct response is that you cannot reference cross-object formula fields that utilize dynamic variables like TODAY or NOW. This is due to the way Salesforce handles formula fields and cross-object references. While dynamic date functions can be used within the formula fields themselves for calculations, referencing those fields in unrelated contexts, such as within another formula field that crosses objects, leads to limitations. Dynamic variables like TODAY or NOW are evaluated at the time of the formula field's calculation, meaning their values can change depending on the context of when they are evaluated. Therefore, if you try to reference a cross-object formula field that uses these dynamic variables, Salesforce does not process it as expected because of this context variance, resulting in an error. Other options, while they mention scenarios like reports or workflows, do not apply. In reports and workflows, the same limitation exists; you cannot leverage these dynamic variables in cross-object references. Therefore, the assertion that you cannot reference cross-object formula fields that are calculated using dynamic variables is indeed accurate.