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
Chirag MehtaChirag Mehta 

API does not enforce layout-specific field restrictions or validations AND record type restrictions

Certain features that are configurable in the Salesforce user interface are not accessible or implicitly enforced via the API.

For example:

•Page layouts can specify whether a given field is required, but the API does not enforce such layout-specific field restrictions or validations in Create and Update calls. It is up to the client application to enforce any such constraints, if applicable.

•Record types can control which picklist values can be chosen in a given record and which which page layouts users with different profiles can see. However, such rules that are configured and enforced in the Salesforce user interface are not enforced in the API.

For example, the AppExchange Web service will not validate whether the value in a picklist field is allowed per any record type restrictions associated with the profile of the logged in user. Similarly, the AppExchange Web service will not prevent a client application from adding data to a particular field simply because that field does not appear in a layout associated with the profile of the logged in user.