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
soni rajputsoni rajput 

Accessing profile object through Apex



I am trying to get and edit the tabvisibilty and appVisibility of a profile object through apex code. 

Is it possible to do the same through Apex ?




No you can't edit the metadata properties through apex code. Please have a look at Metadata API provided by