Find Field Names

After you set up your client, you can build client applications that use the Bulk API. Use the following sample to create a client application. Each section steps through part of the code. The complete sample is included at the end.

You can:

  • Use the describeSObjects() call in the SOAP API Developer Guide, or the sObject Describe resource in the REST API Developer Guide.
  • Use Salesforce Setup.
  • Look up the object in Object Reference, which lists the field names, types, and descriptions by object.

To find an object’s field name in Salesforce Setup:

  1. From Setup, in the Quick Find box, enter Object Manager. Click Object Manager.
  2. Click on the object in the list.
  3. From the object’s management settings, click on Fields & Relationships.
  4. Click the field under Field Label to find the field name.

For a standard field, use the Field Name value as the field column header in your CSV file.

For a custom field, use the API Name value as the field column header in a CSV file or the field name identifier in an XML or JSON file. (To find the API Name, click the field name.)

See Also