Loading

Sales Cloud and Service Cloud: How to Export the Record Name of a Lookup Field Using Data Loader

Data pubblicazione: Aug 21, 2026
Descrizione

This article provides a workaround using formula fields to export the Record Name instead of the Record ID for lookup fields in Sales Cloud and Service Cloud using Data Loader.

Risoluzione

This article explains why exporting a lookup field with Data Loader returns the Record ID instead of the Record Name, and how to export the Record Name instead using a formula field workaround.

When you export a lookup field (for example, the "Account Name" field on the Opportunity object) using Data Loader, the exported value is the Record ID of the related record, not the Record Name.

Workaround: Create a Formula Field

To export the Record Name instead of the Record ID, create a custom formula field that displays the Name field of the related record, then select that formula field as the export target in Data Loader.

Example: exporting the Account Name from the Opportunity object.

Steps to Create a Formula Field

  1. From Setup, open Object Manager and select the Opportunity object.
  2. Click Fields & Relationships, then click New.
  3. Select Formula as the Data Type and click Next.
  4. Enter a name in Field Label (for example, "Account Name for Export") and select Text for the Formula Return Type.
  5. In the formula editor, click Insert Field and select Opportunity > Account > Account Name, then click Insert.
  6. Click Check Syntax to ensure there are no errors.
  7. Set Field-Level Security as needed.
  8. Add the field to Page Layouts as needed.
  9. Click Save.

By selecting this formula field during a Data Loader export, you can output the Account Name information instead of the related Account's Record ID.

Risorse aggiuntive
Numero articolo Knowledge

005299582

 
Caricamento
Salesforce Help | Article