I am confused by this syntax:


on the page I can kinda tell what it does but I want to know what specifically this refers to. Is this accessing Field level security ? If so how do I know what the last word actually means ? Because there is also:


which is not a type of field permission.


Yes, it refers to the field's describe results, including field level permissions for the context user. Accessible is analogous to Visible, Createable means it can be set upon new record creation, Updateable means it can be modified after record creation. Field level security does not tell the whole story. For example, if a field is a master-detail field without the reparentable option, then Createable would be true, but Updateable would be false. You can access most of the attributes mentioned in DescribeSobjectResult under the Field section.


You can see some detail on each of the properties by looking at the DescribeSObjectResult Apex API documentation. Looks like the Java bean pattern applies where is or get can be dropped. So for accessible:

Returns true if the current user can see this object, false otherwise.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.