Skip to content
Log in

Using Person Accounts with StoreConnect

On this page

Use this topic to configure StoreConnect for a Salesforce org that has Person Accounts enabled. Person Accounts is a Salesforce feature that merges the Account and Contact objects into a single record representing an individual person rather than a business. StoreConnect works with Person Account orgs, but the setup steps below have to be completed before customers start registering or ordering.

Before you begin

  • You have Salesforce admin access to edit profiles, custom metadata records, flows, and duplicate rules.
  • The StoreConnect sync user already exists. See set up a StoreConnect sync user.
  • You have the API name of your Person Account record type (for example, PersonAccount) and the sync user’s alias to hand. The configuration below uses both.

How StoreConnect creates and converts Person Accounts

When a customer registers or places an order, on the storefront or at the POS, StoreConnect creates a standard business Account and a Contact linked to it. Salesforce cannot create a Person Account through that insert, so StoreConnect converts the pair afterward. The conversion changes the record type on the Account to the record type named in the Person Account Conversion Record Type setting. The Contact keeps the same ID, so existing references to it stay valid.

StoreConnect converts the pair at a set point in the sync, after any other changes that arrived with the new customer have been saved. Automation in your org that converts the customer earlier breaks that order. See check your own Person Account automation.

These rules decide which accounts convert:

  • New customers — convert as their records first sync to Salesforce.
  • Existing business accounts — are not converted in bulk. One converts only when a later change from the store re-sends the link between the Contact and the Account.
  • Excluded accounts — accounts with Is Company checked, with a Parent Account, or with more than one Contact never convert.
  • Failed conversions — the customer stays a business Account and keeps syncing. No sync error is shown.

The setting applies to the whole org, across every store. When it is blank, no accounts are converted.

Four configuration tasks are required:

Step Task Purpose
1 Configure the sync user profile Makes new customers start as business accounts, ready for conversion
2 Turn on Person Account conversion Tells StoreConnect which record type to convert new customers to
3 Check your own Person Account automation Removes automation that converts customers too early, and keeps other flows from running before the conversion
4 Add duplicate rule exclusions Prevents the sync user from being blocked when creating records that match existing ones

Complete them in order.

Setup requirements

1. Configure the sync user profile

StoreConnect uses a dedicated Salesforce sync user to create and update records. Each new customer’s Account is created with the default Account record type on the sync user’s profile, then converted. Set that default to a business record type, not your Person Account record type. The conversion runs in system context, so the sync user does not need the Person Account record type assigned.

If your sync user is on Salesforce’s standard Minimum Access - Salesforce Integration profile (or a similar API-only profile), the Account object’s record type settings are not editable through the standard profile interface. The Enhanced Profile User Interface setting controls access to that page and is locked on these profile types by default. Clone the profile first if you need to edit it.

For instructions on configuring record types for the sync user, see set up a StoreConnect sync user.

2. Turn on Person Account conversion

StoreConnect converts new customers once the Person Account Conversion Record Type setting names your Person Account record type.

  1. Go to Setup > Custom Metadata Types > StoreConnect Setting > Manage Records.
  2. Open Person Account Conversion Record Type and click Edit.
  3. In Setting, enter the API name of your Person Account record type, for example PersonAccount. The value must match the API name exactly. If it does not match a record type, no accounts convert and no error is shown.
  4. Click Save.

New customers now convert to Person Accounts as they sync. Place a test order on your store as a new customer, then check that the resulting Account record has your Person Account record type.

3. Check your own Person Account automation

Salesforce refuses an update to a Contact in the same transaction that converts the customer to a Person Account. When a flow, trigger, or process in your org converts a new customer before StoreConnect does (for example, a flow that runs when the Contact is created), the changes that arrive with the signup fail with an INVALID_PERSON_ACCOUNT_OPERATION sync error. The customer’s confirmation email then goes out late, when the automatic retry re-runs the failed change, or not at all.

:::warning Before you deactivate a conversion flow, confirm that every customer it converts is created through StoreConnect. StoreConnect does not convert Account records created any other way, such as manually or through another integration. :::

  1. Go to Setup > Flows.
  2. Deactivate any flow that changes the record type on Account to convert StoreConnect customers to Person Accounts. Check Apex triggers and processes on Account and Contact for the same logic, and remove it.
  3. Find any record-triggered flows on Account that reference Person Account fields or record types (for example, welcome emails, entitlement assignment, or field updates).
  4. Add an entry condition to each of those flows so it runs only when Is Person Account is true.

Flows that reference Person Account behavior and fire before the conversion fail with INVALID_PERSON_ACCOUNT_OPERATION errors. The entry condition stops them running before the conversion. The conversion itself is not a reliable starting point: it is a record-type-only change that does not fire Account update triggers. Start a welcome email or similar action from a later event instead.

4. Handle duplicate rules

If your org has Salesforce duplicate rules on Account or Contact set to Block, the sync user hits DUPLICATES_DETECTED sync errors when StoreConnect tries to create a record that matches an existing one.

:::warning Do not disable duplicate rules entirely. Add an exclusion for the sync user instead, so duplicate enforcement stays in place for everyone else. :::

  1. Go to Setup > Duplicate Rules.
  2. Open each duplicate rule on Account and Contact.
  3. Add a condition of Current User: Alias equals the sync user’s alias, and set the action to Allow.
  4. Save the rule.
  5. Confirm the exclusion works: place a test order using an email address that already exists in your org, and check the order syncs without a DUPLICATES_DETECTED error.

For more on managing duplicate records, see automated lead conversion to avoid duplication.

How StoreConnect matches existing Person Account records

When a customer registers or checks out on a StoreConnect storefront, StoreConnect attempts to match them to an existing Person Account record by first and last name combined with either email or phone. If a match is found, it links the new login to the existing Person Account record rather than creating a new one.

Multi-business-unit orgs with Person Accounts

If your Salesforce org uses both Person Accounts and multiple business account structures (for example, separate accounts per division, region, or entity), there are additional considerations for how StoreConnect creates and matches records.

The matching risk

StoreConnect’s account-matching logic uses name, email, address, and phone to find an existing account. In an org with many accounts across different business units, a customer checking out could potentially be matched to an account in a different business unit if the matching fields overlap.

This is most likely to occur during guest checkout for customers who have existing records in your org but have not yet been assigned a StoreConnect ID.

Mitigations

Record type defaults on the sync user profile

Any Account or Contact created through StoreConnect uses the record type set as the default on the sync user’s profile for that object. If your org has multiple Account record types for different business units, set the sync user’s default to the record type appropriate for website-created records. See set up a StoreConnect sync user.

Scoping existing records with per-record sync opt-in

If only a subset of your Account and Contact records should take part in StoreConnect matching and checkout, use per-record sync opt-in to mark those records explicitly. Records without opt-in are not matched during checkout, even if their email or name appears to match.

Disabling automatic account linking

If your org’s account structure makes automatic matching unreliable, you can turn it off using the Enable Company Name store variable. When active, StoreConnect skips account matching for guest checkouts and always creates a new Account. Logged-in customers are still linked to their existing Account. Contact StoreConnect support or your implementation partner to configure this.

Duplicate rule exclusions

If your org has Salesforce duplicate rules set to Block on Account or Contact, add a sync user exclusion as described in setup requirements above. This prevents DUPLICATES_DETECTED errors without disabling your rules for all users.

Person Account conversion across business units

The Person Account Conversion Record Type setting applies to every store in the org, so you cannot turn conversion on for one business unit only. StoreConnect never converts an Account with Is Company checked, with a Parent Account, or with more than one Contact. Business accounts that meet any of those conditions stay business accounts. See how StoreConnect creates and converts Person Accounts.

Account credits with Person Accounts

Account credits work with Person Accounts without any additional configuration. Behind every Person Account is both an Account and a Contact record, and StoreConnect’s credit logic resolves through that chain to the Person Account’s underlying Account record.

Key points:

  • Account credits are per person, not shared across a household.
  • Create Account_Credit__c records against the Person Account’s Account, not a parent household account.
  • Set Can_Use_Account_Credit__c to true on the Person Account’s Contact side.
  • Set Pay_By_Account__c to true on the Person Account’s Account if you use pay by account.

Household-level shared credits are not supported. There is no setting for them. Sharing credits across household members requires custom logic and carries concurrency risk.

See account credit and pay on account at checkout for general configuration.

Custom data mapping with Person Accounts

When Person Accounts is enabled, Salesforce automatically creates __pc suffix fields on the Account object that mirror Contact fields (for example, PersonEmail). These fields stay in sync with the underlying Contact automatically.

Map your StoreConnect custom data mappings against the Account object using the __pc fields, not the Contact object or its __c fields. This matters most for read/write mappings, where StoreConnect needs to write data back to Salesforce. For read-only mappings the distinction is less critical, but using __pc on Account is still the consistent approach.

:::warning Do not remap native StoreConnect fields; this causes them to sync as null. Use custom data mappings only for fields StoreConnect does not already handle natively. :::

Adding or deleting a mapping on Account re-syncs every account record, which can take hours in an org with a large number of accounts. See add custom data fields to your store for mapping instructions and how to plan the change.

Log in as a customer

The log in as a customer feature lets Salesforce users browse the storefront as a specific customer. It works in a Person Account org with no extra setup. The customer’s Contact keeps the same ID when it converts, so you can log in as a customer before or after their conversion.

Setup checklist

Step Who Notes
Set a business record type as the sync user’s default Account record type Salesforce admin On a standard API-only profile, clone the profile first. These profiles do not support editing record types through the standard profile interface.
Set Person Account Conversion Record Type to your Person Account record type API name Salesforce admin Blank means no accounts convert
Deactivate any flow, trigger, or process that converts StoreConnect customers itself Salesforce admin Converting before StoreConnect does fails the signup changes with INVALID_PERSON_ACCOUNT_OPERATION
Make other Person Account flows run only when Is Person Account is true Salesforce admin Prevents INVALID_PERSON_ACCOUNT_OPERATION errors
Add the sync user exclusion to duplicate rules Salesforce admin Prevents DUPLICATES_DETECTED sync errors
Validate that existing customer email addresses align Implementation Ensures existing Person Accounts match on customer registration

Verify the configuration

Once all four tasks are complete, place a test order on your store as a new customer, then confirm:

  • A Person Account record was created, not a separate business Account and Contact pair.
  • The Account record has your Person Account record type.
  • No INVALID_PERSON_ACCOUNT_OPERATION or DUPLICATES_DETECTED errors appear in the sync error tool.

Then repeat the test using an email address that already exists in your org, and confirm the order links to the existing Person Account rather than creating a new one.

Was this article helpful?

Was this article helpful?