Showing posts with label Enforcing field level security using Salesforce Apex Class. Show all posts
Showing posts with label Enforcing field level security using Salesforce Apex Class. Show all posts

Friday, June 13, 2014

Enforcing field level security using Salesforce Apex Class?

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


 
| ,