---
schema_version: "1"
id: 6d603389afe4884942dfdadc4a8bb4ae9abfb5ef2f623a9fbd166fa691b79368
title: SObjectField Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Schema_SObjectField.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_SObjectField.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: eba78b7659435030711fdee25b9ce45c661ac058d734fce8bdac3e8ca82adf7c
description: A Schema.sObjectField object is returned from the field describe result using the getController and getSObjectField methods.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.
---
# SObjectField Class

A Schema.sObjectField object is returned from the field describe result using the getController and getSObjectField methods.

## Namespace

[Schema](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Schema.htm "The Schema namespace provides classes and methods for schema metadata information.")

## Example

Schema.DescribeFieldResult F = Account.Industry.getDescribe();
Schema.sObjectField T = F.getSObjectField();

## sObjectField Methods

The following are instance methods for sObjectField.

- **[getDescribe()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_SObjectField.htm#apex_Schema_SObjectField_getDescribe)**  
    Returns the describe field result for this field.
- **[getDescribe(options)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_SObjectField.htm#apex_Schema_SObjectField_getDescribe_2)**  
    Returns the describe field result for this field. This method also provides an option to get all the describe field results for an object.

### getDescribe()

Returns the describe field result for this field.

#### Signature

public Schema.DescribeFieldResult getDescribe()

#### Return Value

Type: [Schema.DescribeFieldResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_fields_describe.htm#apex_methods_system_fields_describe "Contains methods for describing sObject fields.")

### getDescribe(options)

Returns the describe field result for this field. This method also provides an option to get all the describe field results for an object.

#### 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.

#### Return Value

Type: [Schema.DescribeFieldResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_fields_describe.htm#apex_methods_system_fields_describe "Contains methods for describing sObject fields.")