Home Enforcing field level security using apex class

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();

Leave a Comment