Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Custom Objects & Incorrect Reference Information #476

Open
Murphybp2 opened this issue Dec 13, 2024 · 7 comments
Open

Missing Custom Objects & Incorrect Reference Information #476

Murphybp2 opened this issue Dec 13, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Murphybp2
Copy link

Describe the bug
The tool does not display all my custom objects in the SObject drop down. I've uninstalled and reinstalled the app in both production and a sandbox and it's the same result. There are no errors when it loads the metadata, the objects are just not there. I've looked through the list with no other filters, and also tried it with the SObject Type filtered to "Custom Object", but many of the objects are not displayed.

I was able to find fields from one object in the custom fields list, however the "In this object" and "Object Type" fields are blank.

I've also noticed the tool tells me that none of my custom fields, flows, or custom labels are referenced anywhere. So it seems something is not working correctly.

To Reproduce
There are no errors.

@Murphybp2 Murphybp2 added the bug Something isn't working label Dec 13, 2024
@VinceFINET
Copy link
Collaborator

VinceFINET commented Dec 13, 2024 via email

@Murphybp2
Copy link
Author

Murphybp2 commented Dec 13, 2024 via email

@VinceFINET
Copy link
Collaborator

Awesome video and comments!!
Thank you so much, this is really helpful!!

Can you perform the following queries:

SELECT DurableId, NamespacePrefix, DeveloperName, QualifiedApiName
FROM EntityDefinition
WHERE keyPrefix <> null
AND DeveloperName <> null
AND (NOT(keyPrefix IN ('00a', '017', '02c', '0D5', '1CE')))
AND DurableId IN ('Activation__c', 'CR_Volunteers__c', 'CR_Volunteers__c')

and

SELECT DurableId, NamespacePrefix, DeveloperName, QualifiedApiName
FROM EntityDefinition
WHERE keyPrefix <> null
AND DeveloperName <> null
AND (NOT(keyPrefix IN ('00a', '017', '02c', '0D5', '1CE')))
AND QualifiedApiName IN ('Activation__c', 'CR_Volunteers__c', 'CR_Volunteers__c')

@Murphybp2
Copy link
Author

Murphybp2 commented Dec 13, 2024 via email

@VinceFINET
Copy link
Collaborator

Thank you again!!

Unfortunately github removes images or files when you reply by email.
so you can send it directly to me at: vfinet at gmail dot com

About the "Missing object" in the custom field tab:

  • when you hover to the fields with no object i saw that the URL includes the correct object name (example in the video with a custom field on the Activation__c object)
  • I would assume that the custom field row has the correct "ObjectId" field (internally in the app) because it is used for the URL creation
  • the ObjectId is based on the QualifiedApiName (here Activation__c as previously mentioned used in the URL of the field)
  • But for some reason, when trying to make the link between the ObjectId and its reference... the app can't find the corresponding "Activation__c" in the operation called DescribeGlobal() in the salesforce api (ref: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_describeGlobal.htm).

Is there a possibility for you to perform this query /services/data/v60.0/sobjects and send it back to me (by private email)?
You can use workbench or Salesforce inspector to perform this.

THANK YOU so much.

For your information, i have a similar issue with the "Activity" standard object. You can add custom field into it, but that object is not listed in the DescribeGlobal() operation...
So in a way while you get that information, i can work on a fix for this (providing this is the same issue you have).

@Murphybp2
Copy link
Author

I sent you the information to your email. Let me know if you don't get it.

@VinceFINET
Copy link
Collaborator

awesome, i am creating a unit test just with your case to get rid of it once and for all...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants