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

Hi,

 

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 ?

 

Thanks

Sandeep001Sandeep001

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