Enforcing field level security using apex class:

You can determine field level security by using getDescribe() . Below is the example of one such kind

Schema.DescribeFieldResult fld = Account.Phone.getDescribe();

Boolean notHidden = fld.isAccessible();
Boolean notReadonly = fld.isUpdateable();

Written by 

2x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *