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
Ravi Kumar 259Ravi Kumar 259 

In field level security one field is set to hidden. Can we access particular field through Apex code or Workflow?

KaranrajKaranraj
Ravi,

There is no option to set the field hidden in the filed level security. You mean you are removing read/edit access to that field, if so you can access that field in Apex code, but while running it will throw error message to the user if user don't have access read/write access to that field.

Note: I strongly recommend you to do some research and post your question in forum. You are asking question which can be easily find in google and salesforce documentation and moreover its looks like an interview questions.

To get start with development check this Trailhead modules which will be helpful for you to learn - https://developer.salesforce.com/trailhead
Salesforce Documentation - https://developer.salesforce.com/docs
Workbooks Tutorials - https://developer.salesforce.com/page/Force.com_workbook 

Thanks,
Karanraj