You need to sign in to do that
Don't have an account?
![James Henderson 11 James Henderson 11](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
field set member accessibility
I am attempting to use Field Sets in my Apex code to dynamically query for an object. How can I check the field accessibility of the field members that are not part of the object.
For example, for an Account field set I can easily check the accessibilty of the fields Account Name, Account Number etc.
But I am unable to check the accessibilty for example Parent Account ID > Account and Record Type ID > Name
You can search:-> sObjectName Soap Api in sfdc.
Refer This URL:
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_account.htm
You can also add extensions which is name given below.
"Salesforce API Fieldnames"
Please let me know if you have any query.
Please mark it as best Answer if you find it helpful.
Thank You
Ajay Dubedi
Hi Ajay,
This doesn't answer my question about accessibility of field set fields using APEX, your link takes me to the SOAP API.
I have currently create the following function to check the accessibility of field set values, but it will easily fail if I have missed a field relationship or identified it incorrectly. It feels a really hacky way of doing it.