In Salesforce, when a person account is created (or an existing business account is changed to a person account), a corresponding contact record is also created. This contact record is referred to as a person contact. The ID of the corresponding person contact record is stored in the PersonContactId field on the person account.
To get the PersonContactId, query it from the person account record with this query: SELECT PersonContactId from Account Where Id=001******
Query the PersonContactId and then modify the contact record type to an existing record type via the API. The following Apex code gets a person account, queries its person contact, sets a new RecordTypeId on the contact, and updates the contact.
`Account account = [SELECT PersonContactId from Account Where isPersonAccount=true limit 1];
Contact contact = [SELECT ID, RecordTypeId from Contact where ID =:account.PersonContactId ];
contact.RecordTypeId = '012*******';
update contact;`
The update fails with the following error: System.DmlException: Update failed. First exception on row 0 with id 003xxxxxxxxxxx; first error: INSUFFICIENT_ACCESS_OR_READONLY, insufficient access rights on object id: []
This article answers the question: why does updating the RecordTypeId on a Person Contact in Salesforce fail with an insufficient access error? The Person Account is the only place where the record type can be changed, so the update on the Person Contact is not possible.
The Person Account is the primary interface for manipulating the record type on a Person Account and not on its Person Contact. Therefore, updating the Person Contact record type is not possible. This behavior is working as designed.
005305352

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.