OrgCheck icon indicating copy to clipboard operation
OrgCheck copied to clipboard

Person Account Custom fields ignored

Open vaumont opened this issue 3 years ago • 4 comments

In an org with Person Account enabled:

  1. 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.

  1. 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 :

image

vaumont avatar Apr 09 '21 17:04 vaumont

On the "Objects" tab, I can see the Person Account field on the Account object image

And the DAPI is showing this for this field: image

VinceFINET avatar Jun 08 '21 15:06 VinceFINET

Effectively on the "Custom Fields" tab, i cannot see the same on the account object. i see only the field on Contact image

VinceFINET avatar Jun 08 '21 15:06 VinceFINET

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.

VinceFINET avatar Jun 08 '21 15:06 VinceFINET

pushing this feature to future release as it may means to refactor from tooling to metadata api...

VinceFINET avatar Jun 28 '21 17:06 VinceFINET