Skip to main content
Hello all,

 

First question on Salesfoce :-)

 

It says here (bold is what concerns me):

 

Triggers and Order of Execution

On the server, Salesforce:

  1. Loads the original record from the database or initializes the record for an upsert statement.

  2. Loads the new record field values from the request and overwrites the old values.

    If the request came from a standard UI edit page, Salesforce runs system validation to check the record for:

    • Compliance with layout-specific rules

    • Required values at the layout level and field-definition level

    • Valid field formats

    • Maximum field length

    Salesforce doesn't perform system validation in this step when the request comes from other sources, such as an Apex application or a SOAP API call.

  3. Executes all before triggers.

  4. Runs most system validation steps again, such as verifying that all required fields have a non-null value, and runs any user-defined validation rules. The only system validation that Salesforce doesn't run a second time (when the request comes from a standard UI edit page) is the enforcement of layout-specific rules.

  5. Saves the record to the database, but doesn't commit yet.

 

My question is:

 

Are layout-specific rules the same thing as Validation Rules? If nto, what's the difference?

 

Thanks,

 

Florent

 

Ps: big, BIG, HUUUGE up for all those that answer Salesforce questions. It is indeed so very useful!
10 answers
  1. Sep 21, 2022, 9:55 AM

     layout-specific rules are different from Validation Rules. layout specific rules are system validation rules that include things like:

    • Required values at the layout level and field-definition level

    While validation rules can be custom validation rules.

0/9000