tprouvot / Salesforce-Inspector-reloaded

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
https://chrome.google.com/webstore/detail/salesforce-inspector-relo/hpijlohoihegkfehhibggnkbjhoemldh
MIT License
203 stars 62 forks source link

Can't search for Person Account object on Objects tab #427

Closed brittsfadmin closed 5 months ago

brittsfadmin commented 5 months ago

When using the Inspector Reloaded in an org with Person Accounts enabled, and using the search bar located on the Objects tab, Person Accounts is not able to be selected.

To Reproduce Steps to reproduce the behavior:

  1. Enable Person Accounts in the org, or login to an org with Person Accounts enabled
  2. Go to 'Objects' tab in the Inspector Reloaded
  3. Click on 'search bar'
  4. Type in 'Person Account' both with and without the space
  5. Search for the Person Accounts standard object, and see that it is not available.

Expected behavior Would expect to be able to select the Person Account object

Screenshots image image image

Desktop (please complete the following information):

Additional context Wouldn't be able to select the Fields on this object as they're all located on the actual Account object, but would be good to navigate to the Record Types

tprouvot commented 5 months ago

Hi @brittsfadmin,

That's because PersonAccount is not a proper SObject and not returned in the EntityDefinition.

What you could do is to create a custom shortcut for PersonAccount recordtype:

By code : Open chrome dev console from data-export page

image

Then paste following code in the console

image

let rcLink = {
    "label": "PersonAccount RecordType",
    "section": "Custom",
    "link": "/lightning/setup/ObjectManager/PersonAccount/RecordTypes/view",
    "prod": false
};

const urlParams = new URLSearchParams(window.location.search);
const sfHost = urlParams.get('host');

let links = localStorage.getItem(sfHost + "_orgLinks") ? JSON.parse(localStorage.getItem(sfHost + "_orgLinks")) : [];
links.push(rcLink);
localStorage.setItem(sfHost + "_orgLinks", JSON.stringify(links));
image

or manually