Loading

Obtain the Contact ID for a Person Account

Publiceringsdatum: Nov 4, 2025
Beskrivning
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
While the Contact ID (PersonContactId) can also be retrieved using tools like Data Loader, this article introduces the methods available within the user interface.

Use one of the following methods to retrieve the Contact ID for a Person Account.
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
4. Click Execute.
5. The Query Results will display the PersonContactId (Contact ID).
Ytterligare resurser
- Record IDs can be 15 or 18 digits. For details, please refer to "Locate the Unique ID of a Record in Salesforce".
- The Person Account's Contact ID is necessary when using the Data Import Wizard to import them as Campaign Members. For details, see "Add or Update Campaign Members with the Data Import Wizard".
Knowledge-artikelnummer

005227056

 
Laddar
Salesforce Help | Article