conn.sobject("Account").create({
FirstName: contact.FirstName,
LastName: contact.LastName,
PersonAccountId: contact.Id
});
That gets me
INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: PersonContactId
I can see the PersonContactId field in the Account when I query it, but I guess it's read only.
What's the proper way to do this?Thanks -- Steve1 answer
Sorry, the code block should be:
conn.sobject("Account").create({
FirstName: contact.FirstName,
LastName: contact.LastName,
PersonContactId: contact.Id
});