function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
How to pull fields,data type on profile based from objects?
If you want to check the Field-level security setting of each profile,
query the FieldPermissions object
doc:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_FieldPermissions.htm
If you want to get the data type of each field of each object,
use Apex sObject Describe Result Methods
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_fields_describe.htm
such as
Schema.DescribeFieldResult F = Account.AccountNumber.getDescribe();
If you want to check the Field-level security setting of each profile,
query the FieldPermissions object
doc:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_FieldPermissions.htm
If you want to get the data type of each field of each object,
use Apex sObject Describe Result Methods
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_fields_describe.htm
such as