2021-07-01 Salesforce Read Only
2021-07-07 本文已影响0人
古月的小七
在Set Field-Level Security中,我们有两个Option,如下图所示,一个是Visible,一个是Read Only。基于这两个Option我们可以得到:
If you checked only 'Visible' checkbox then that field will be editable to the users in that profile (Read+Edit).
If you click on both Visible & Read-only then that field will be "Read-only" to that users in that profile.
If you do not check both checkbox for Visible & Read only then that field will be Hidden from users in that profile.

- 如果你选择了Read Only的Option,然后触发Trigger去操作该字段的话,你会得到如下的Error Message:System.Exception: Record is read-only
对于标准字段:
字段本身对所有Profile都是可见且不允许修改的
对于标准且Require的字段,是不能从Page Layout上移走的
