You can determine field level security by using getDescribe() . Below is the example.
Schema.DescribeFieldResult fieldld = Account.Phone.getDescribe();
Boolean notHidden = fieldld.isAccessible();
Boolean notReadonly = fieldld.isUpdateable();
Schema.DescribeFieldResult fieldld = Account.Phone.getDescribe();
Boolean notHidden = fieldld.isAccessible();
Boolean notReadonly = fieldld.isUpdateable();
0 comments:
Post a Comment