3

I queried the below in the service console to get the custom object count. But I got one object difference. i.e "PersonAccount" . When i check the ID its not displaying in the UI page.

select id, DeveloperName, Description, ExternalName, ManageableState, NamespacePrefix, SharingModel from CustomObject where ManageableState != 'installed'

// Output
//Make sure you checked the tooling API checkbox when u run the query in console

//Count 514

Setup-> System overview -> custom object count (513)

1 difference in object count. Object name is "PersonAccount"

Why is it showed here?

  • You have queried from Developer Console or Service Console? – Raul Mar 13 '17 at 12:28
  • PersonAccount is a standard object, maybe that is the cause. – Raul Mar 13 '17 at 12:40
  • @RahulSharma quried in Developer Console – bharath Mar 13 '17 at 12:57
  • I am querying only custom objects . Then why i am seeing this in the result. – bharath Mar 13 '17 at 12:58
  • Check the API name of the object? – Raul Mar 13 '17 at 13:03
3

It's an artifact from the special case that is Person Accounts and how they appear as an optional addition to an org. Likely related to supporting Page Layouts, record types etc... for something that is otherwise covered by the existing Account and Contact records.

The Custom Object Overview from the System Overview will explicitly exclude it on the understanding that it is actually a native object.

  • +1 I got two object count different. One is person account. Another one i couldn't figure it out. I raised the support case. Lets see. – bharath Mar 16 '17 at 6:47
2

We raised a support case to look what are the objects can be added in the system overview as custom object. Below are the initial response from salesforce support. I will share once i got final conclusion.

Custom object count in system overview = ( Custom object + custom settings ) locally created + unmanaged package objects + Nonsalesforce Published managed Packaged Objects. (Custom object from managed package published by salesforce are not counted in system overview).

NOTE: Soft deleted objects are not counted in System overview but counted in tooling API, Hard deleted objects are not counted in both System Overview & tooling API.

If I enable knowledge user and enable knowledge settings a new knowledge object is created in org which does not count in system overview but counted in tooling API.

Count in System Overview = 2 Count in Tooling API query = 3

Tooling API’s SOQL capabilities for many metadata types allow you to retrieve smaller pieces of metadata.

I am still checking with my team for any more information.

Thanks for your patience.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.