function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kenneth Wang 1Kenneth Wang 1 

Is it possible to add access control for Field Set? And set ordering for the data in Field Set?

Is it possible to add access control for Field Set?And is it possible set the ordering of the row data in Field Set?

My usage is to provide a field set which include the fields that user want to get via metadata API. But only parts of users can access the field set.
VineetKumarVineetKumar
No, this is not possible with field set.
Why don't you use custom setting to contain the field names, order of appearance related to each, access control setting which you can dynamically control via apex.
Kenneth Wang 1Kenneth Wang 1
Thanks for your reply!

I was confused on some fields in an object are not available in its field set configure page. In profile, I only found it control the fields for read, edit etc. Does it means if the fields on an object are defined as inaccessiable, then these fields will not display in field set configure page?


 
VineetKumarVineetKumar
Possibily yes, but can you refer few fields here, that you are expecting to show up in the field set list?