Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
SObjectField Class
Namespace
Example
1Schema.DescribeFieldResult F = Account.Industry.getDescribe();
2Schema.sObjectField T = F.getSObjectField();sObjectField Methods
The following are instance methods for sObjectField.
getDescribe()
Signature
public Schema.DescribeFieldResult getDescribe()
Return Value
getDescribe(options)
Signature
public Schema.DescribeFieldResult getDescribe(Object options)
Parameters
-
options:
Type:
Object Use this parameter to pass FieldDescribeOptions.FULL_DESCRIBE when 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.PersonType field is a picklist that contains a list of accessible object types.