function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Navneeth RajNavneeth Raj 

How to know the API names of fields of a Standard Objects like Accounts, Contacts etc

How to know the API names of fields of a Standard Objects like Accounts, Contacts etc & what's the navigation to view the API names of fields of standard objects
SaranSaran
Hi Navneeth,

You can look for the API name of the standard fields under setup -> customize -> under any standard object -> fields. 

User-added image

User-added image

Here field name denotes the API name of the standard fields.

Hope this might help you.

Thanks.
 
Amit Chaudhary 8Amit Chaudhary 8
Please check below post:-
https://help.salesforce.com/apex/HTViewSolution?id=000007594&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000007594&language=en_US)

For standard objects,

Use http://www.salesforce.com/us/developer/docs/object_reference/index_Left.htm#CSHID=sforce_api_objects_list.htm|StartTopic=Content%2Fsforce_api_objects_list.htm|SkinName=webhelpto get API names for standard field names
For custom fields,

Go to Setup | App Setup | Customize | <Object> | Fields
Look for "API Name" column value in "Custom Fields & Relationships" section


To find a field's API name for custom objects, please follow these steps:

1. Go to Setup | Create | Objects | <Object> | Fields 
2. And check for "API name" column name value

NOTE:- You can nt see all field API name in UI
Like below field on UI:-
MailingCity
MailingState
MailingCountry
MailingPostalCode
MailingStreet


Please download below PDF for all standard field name
https://help.salesforce.com/help/pdfs/en/salesforce_field_names_reference.pdf

Contact Field API name:-
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contact.htm

Account Field API name:-
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_account.htm

Please let us know if this will help you.

Thanks,
Amit Chaudhary
sfdcdevsfdcdev
The best way to check the API Name of standard objects is either Force.com IDE or Workbench.

Workbench:

1.Login in to Workbench:https://workbench.developerforce.com/login.php

User-added image
User-added image

2.Click on Select.

User-added image
3.Click on Fields and select a field:

User-added image
4.You can see the name and label of that particular field:name is the API Name here.

Force.com IDE: 

Install Force.com IDE and create a project:

https://developer.salesforce.com/page/Force.com_IDE_Installation

https://developer.salesforce.com/page/An_Introduction_to_Force_IDE

After creating a project,select salesforce.schema in Pakage Explorer.

User-added image
Here you can see API names of the fields of various objects in right side of the window:

 
Phan ToanPhan Toan
The fastest way to find API name of all object is use Schema Builder:
1. Go to Set up > Build > Schema Builder
2. Select objects what you want to see API name.
2. In view option, select Display Element Names

User-added image
Cathy PostmusCathy Postmus
Thank you, Phan Toan!  Appreciate it as all the other options kept leading to fields. I was also looking for the Object API name!