2

In reading the documentation on Roll-Up Summary Field, I found":

Avoid referencing a roll-up summary field from a child record. The roll-up summary fields referenced from child records can have outdated values, because their parent records have not been updated. Instead, reference roll-up summary fields from parent records. Your roll-up summary fields will always have updated values, because that rule runs after the parent value has been updated.

What does this mean? I created a formula field on child record that references the rollup summary field on parent. Whenever the value of roll up changes in parent it does gets reflected in child record. I am trying to understand what the document statement is about.

3

They are talking about using roll-up summary fields referenced in validation rules from child records:

Your roll-up summary fields will always have updated values, because that rule runs after the parent value has been updated.

0

Building on Oleksiy's answer, we could reword the paragraph as:

Avoid referencing a parent's roll-up summary field from a child record validation rule. The parent roll-up summary fields referenced from child records can have outdated values, because their parent records have not been updated. Instead, reference parent roll-up summary fields from parent record validation rules. Your roll-up summary fields will always have updated values, because validation rules runs after the parent roll-up summary value has been updated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.