Timeline for How to change field permissions in a permission set or profile programmatically (APEX)
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 15 at 19:19 | comment | added | Ezra Kenigsberg | 2] update the PermissionsEdit and/or PermissionsRead fields for the record whose ID was returned in step [1]. you're done! | |
Aug 15 at 19:16 | comment | added | Ezra Kenigsberg | 1] run a query like this, to get the ID for the "Standard User" Profile's FLS for Account.AccountNumber: SELECT Id, Field, PermissionsEdit, Parent.Profile.Name FROM FieldPermissions WHERE SObjectType = 'Account' AND Parent.Profile.Name = 'Standard User' AND Field = 'Account.AccountNumber' | |
Aug 15 at 19:16 | comment | added | Ezra Kenigsberg | PROFILES CAN NOW BE UPDATED using the FieldPermissions object I don't know when this changed, but it's PHENOMENAL AND GAME-CHANGING Try it out for yourself! | |
Apr 12, 2021 at 18:56 | vote | accept | Victor Archela | ||
Apr 12, 2021 at 15:04 | comment | added | Victor Archela | This is incredibly helpful! Let me test it out and I'll mark it as answered if it works, thank you so much even for the reply, I did not know this obj existed :) | |
Apr 10, 2021 at 6:37 | history | answered | User6670 | CC BY-SA 4.0 |