Loading

Salesforce: How to Find the API Name of a Field or Object in Lightning Experience and Classic

Дата публикации: Jun 9, 2026
Описание

In Salesforce, every field and object has both a user-facing Label and an internal API Name used in code, integrations, and API calls. The API Name for custom objects typically ends in '__c' (for example, MyObject__c) and custom fields similarly end in '__c' (for example, My_Field__c). Standard objects and standard fields use their underlying API names without the suffix. Knowing the correct API Name is essential for REST and SOAP API calls, Apex code, formulas, and data integrations.


This article explains how to find the API Name of all objects and fields in Salesforce.

Решение

Standard Objects

Read the Object Reference for Salesforce and Force.com on developer.salesforce.com. Click on the desired object to get API names for all standard field names.

Custom Fields in Salesforce Classic

  1. Go to Setup.
  2. Go to Build > Create > Objects.
  3. Select the custom object.
  4. Locate the object and click the name under its Label.
  5. Look for the "API Name" column value in the "Custom Fields & Relationships" section.

 

Custom Fields in Lightning Experience

  1. Go to Setup.
  2. Click Object Manager.
  3. Locate and click the object.
  4. In the sidebar, click Fields & Relationships.
  5. Locate the field label and see the 'Field Name' column value for the API Name.

 

Note: In Lightning Experience, the API Name is found in the Fields & Relationships section of the Object Manager. In Salesforce Classic, it is found in the 'Custom Fields & Relationships' section of the object detail page.

 

Custom Objects in Salesforce Classic

  1. Go to Setup.
  2. Under "Build," select Create > Objects.
  3. Select the object name and locate the Custom Object Definition Detail to see the API Name field.

 

Custom and Standard Objects in Lightning Experience

  1. Go to Setup.
  2. Click Object Manager.
  3. Locate the object name.
  4. See the 'API Name' column.

 

For more information about custom fields for standard or custom objects, review the "Naming Conventions for Custom Fields" section of the Developer Documentation.

Дополнительные ресурсы

Find Object Management Settings in Lightning Experience

Номер статьи базы знаний

000385500

 
Загрузка
Salesforce Help | Article