开发者

Security context in a trigger

开发者 https://www.devze.com 2023-01-14 03:06 出处:网络
I\'ll start of by saying that I\'m a .net guy having to play in a salesforce.com world right no开发者_如何学运维w.

I'll start of by saying that I'm a .net guy having to play in a salesforce.com world right no开发者_如何学运维w.

My question is this;

Within the context of an pre-update/insert trigger can I set the value of a field that the user (the user that is updating the object when the trigger fires) does NOT have on their page layout?


Yes.

However, the user might still be restricted from modifying that field due to restrictions on the field itself. If it's a standard object, you can go to Setup > App Setup > Customize. Then choose the object in question and go to the "Fields" link. There you can see each field on the object and view the field-level security.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号