OrgCheck
OrgCheck copied to clipboard
Person Account Custom fields ignored
In an org with Person Account enabled:
- create a xyz__c custom field on the Contact object Salesforce automatically creates a xyz__pc field on the Account object
OrgCheck does not report on the __pc field.
- On the account object, create an abc__c formula fields that references the Account.xyz___pc field
- Account.xyz__pc is still not listed
- OC shows that abc__c uses xyz :
On the "Objects" tab, I can see the Person Account field on the Account object
And the DAPI is showing this for this field:
Effectively on the "Custom Fields" tab, i cannot see the same on the account object.
i see only the field on Contact
The following query from Tooling API is not showing the pc field
SELECT Id, TableEnumOrId, DeveloperName, NamespacePrefix
FROM CustomField
WHERE TableEnumOrId = 'Account'
AND DeveloperName = 'xyz_test'
I found the field if I change the statement with TableEnumOrId = 'Contact'
My assumption is that Tooling API does show up the pc fields. I will investigate internally.
pushing this feature to future release as it may means to refactor from tooling to metadata api...