sfdx-browserforce-plugin icon indicating copy to clipboard operation
sfdx-browserforce-plugin copied to clipboard

Automate enabling PersonAccount

Open YodaDaCoda opened this issue 1 year ago • 3 comments

We no longer need to contact Salesforce to enable PersonAccounts, but it can't be done via sf and I can't find a way to do it via API.

lightning/setup/PersonAccountSettings/home

https://help.salesforce.com/s/articleView?id=sf.account_person_enable.htm&type=5

YodaDaCoda avatar Mar 06 '24 05:03 YodaDaCoda

And other thing related to this is enabling history tracking on PersonAccount fields.

Which is currently impossible on Metadata API: https://ideas.salesforce.com/s/idea/a0B8W00000GdaAUUAZ/retrieve-person-account-fields-pc-with-history-tracking-via-metadata-api

thvd avatar Nov 01 '24 12:11 thvd

@YodaDaCoda Do you mind to give some more context around what the use case would be here? Right now you cannot directly enable person accounts without first accepting the Org Impact Acknowledgement and setting up at least 1 Record Type on the Account object.

Since it is possible to enable Person Accounts via Scratch Org configuration and once it is enabled in Production it copies to all sandboxes, I am curious to better understand the scenario where this would be used before working on implementing this feature.

ClayChipps avatar Jan 12 '25 01:01 ClayChipps

@thvd FYI: Please see the latest release where @ClayChipps implemented enabling History Tracking: https://github.com/amtrack/sfdx-browserforce-plugin/releases/tag/v4.7.0

amtrack avatar Mar 19 '25 15:03 amtrack