Loading

Obtain the Contact ID for a Person Account

Publiseringsdato: Nov 4, 2025
Beskrivelse
This article explains how to find the Contact ID on a Person Account record in Agentforce Sales, formerly known as Sales Cloud. While Person Accounts possess both an Account ID and a Contact ID, the Contact ID is not visible on the standard record page. This article will guide you through the steps to identify this ID within the user interface, using methods such as Reports or the Developer Console.
Løsning

This article explains how to obtain the Contact ID (PersonContactId) for a Person Account, since it is not visible on the standard record page in the Salesforce user interface. Use one of the two methods below.

While the Contact ID can also be retrieved using tools like Data Loader, this article introduces the methods available within the user interface.

Method 1: Use a Report

  1. Create a new report in the Report Builder.
  2. Select the Contacts & Accounts report type.
  3. In the Outline, add Contact ID to the Columns.
  4. (Optional) Filter the report in the Filters to target specific Person Account records.
  5. Run the report.

Method 2: Use the Developer Console

  1. Open the Developer Console from Setup (gear icon).
  2. Select Debug > Open Execute Anonymous Window.
  3. Enter the following SOQL query, replacing 'Target Account ID' with the 15 or 18-digit Account ID of the target Person Account:
    SELECT PersonContactId FROM Account WHERE Id = 'Target Account ID' AND IsPersonAccount = true

    This query returns the PersonContactId — the Contact ID associated with the specified Person Account.

  4. Click Execute.
  5. The Query Results will display the PersonContactId (Contact ID).
Knowledge-artikkelnummer

005227056

 
Laster
Salesforce Help | Article