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
jayamjayam 

field level Security through Apex

Hi All

 

Is it Possible to do Field Level Security through Apex?

 

if Possible Please  share with me .

 

 

thankssssssssssss

sfdcfoxsfdcfox

It requires using the Metadata API, which is inherently asynchronous... it's unlikely that you can get it to work correctly in pure Apex Code. However, it would be feasible in a Visualforce page. What's your use case?

jayamjayam

Thanks for ur Reply

 

but How could I  do this ? Please Tell me

 

can u send me any sample example ?

 

thankssssssss