SObjectField Class
A Schema.sObjectField object is returned from the field describe result using the getController and getSObjectField methods.
The following are instance methods for sObjectField.
-
Returns the describe field result for this field.
-
Returns the describe field result for this field. This method also provides an option to get all the describe field results for an object.
Returns the describe field result for this field.
public Schema.DescribeFieldResult getDescribe()
Type: Schema.DescribeFieldResult
Returns the describe field result for this field. This method also provides an option to get all the describe field results for an object.
public Schema.DescribeFieldResult getDescribe(Object options)
-
options:
Type:
Object Use this parameter to pass
FieldDescribeOptions.FULL_DESCRIBEwhen a subset of system objects could have different results for picklist values based on the context they’re invoked in. This parameter computes all aspects of describe field results.For example,
AIConversationContext.PersonTypefield is a picklist that contains a list of accessible object types.