Add RecordTypeId for Person Accounts in Salesforce Account Service

- Updated SalesforceAccountService to include RecordTypeId for Person Accounts, ensuring proper handling of account types during creation.
- This addition enhances the integration with Salesforce by specifying the required record type for accounts, improving data accuracy and compliance with Salesforce requirements.
This commit is contained in:
barsa 2026-01-06 17:03:27 +09:00
parent a8580b0d61
commit 3fb1de27d5

View File

@ -181,6 +181,8 @@ export class SalesforceAccountService {
// Portal tracking fields
[this.portalStatusField]: "Active",
[this.portalSourceField]: "Portal Checkout",
// Record type for Person Accounts (required)
RecordTypeId: "0122w000000YjPHAA0",
};
try {