2

Can an apex code perform an bulk update on a field-level security to visible

I have moved few objects and each objects has almost dozens of fields and its very time consuming to go on each field and click on Set Field-Level Security and check on Visible, I'm looking a way to achieve the same functionality by using Apex class. Is that possible?

2
  • Abu, I came across somewhat similar kind of question in developers forum a few months ago. I haven't tried, but might be helpful for you. developer.salesforce.com/forums/?id=906F0000000AY54IAG
    – Seesh
    Commented Sep 15, 2015 at 19:03
  • i have looked at it before posting the question
    – Nick
    Commented Sep 16, 2015 at 1:30

1 Answer 1

3

The other way I found seems much less clicks is by going to:

Manage Users ==> Profiles ==> {click on profile name} ==> Go To 
>> Custom Field-Level Security ==> {find your custom object and click on View }

When you click on View it will open a window in it you will find all your fields list, Click Edit to Visible.

This is much better then going through each individual field and click Set Field-Level Security etc... too many clicks in the approach I was doing but the above approach is better you have all the fields.

1
  • for those using hti sanswer , the path has changed slightly... manage users -> profiles -> <select whatever profile> -> object settings -> <select whatever object>
    – Jay Rizzi
    Commented Apr 28, 2017 at 17:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .