function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Murali KrishnaMurali Krishna 

What is the difference between Validation rule and roll-up summary fields

What is the difference between Validation rule and roll-up summary fields

Best Answer chosen by Admin (Salesforce Developers) 
Bhawani SharmaBhawani Sharma
It you want to validate your data before inserting/updating in database, then validation rules comes in picture. like if you want made a field mandatory based on other field value, you can write a validation rule.

Rollup Sumaary: This is to rollup child data on Parent. Like how many children, parent is having. Max value from child etc..Roll up field only works in M_D relationship.

All Answers

Bhawani SharmaBhawani Sharma
It you want to validate your data before inserting/updating in database, then validation rules comes in picture. like if you want made a field mandatory based on other field value, you can write a validation rule.

Rollup Sumaary: This is to rollup child data on Parent. Like how many children, parent is having. Max value from child etc..Roll up field only works in M_D relationship.
This was selected as the best answer