Introspection bug/request: Using SFDX, How to list all polymorphic tables ie those that are retrievable but not present in schema:sobject:list? Example: "Activity" #2372
Replies: 5 comments
-
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Beta Was this translation helpful? Give feedback.
-
This issue has been linked to a new work item: W-8793485 |
Beta Was this translation helpful? Give feedback.
-
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
Beta Was this translation helpful? Give feedback.
-
Is there a way for us to access information about [W-8793485] ? |
Beta Was this translation helpful? Give feedback.
-
we could if there was an API for them, but I don't see them. Like you can |
Beta Was this translation helpful? Give feedback.
-
Hello.
Observed behavior:
sfdx force:source:retrieve --json -m CustomObject:Activity
runs fine, but none of the commands below return "Activity":sfdx force:schema:sobject:list -c standard --json > ActivityDoesntAppearHere.json;
sfdx force:schema:sobject:list -c all --json > ActivityDoesntAppearHereEither.json;
sfdx force:schema:sobject:list -c custom--json > ActivityDoesntAppearHereAsWell.json;
Question & Suggestion:
Are there any existing force commands that can return "Activity" and any other polymorphic concepts? Having an introspection command that reveals all of them would be hugely helpful.
I know "
Activity
" is not a sObject, but rather a polymorphic construct that can mean either "Task" or "Event" sObject, therefore probably doesnt belong in the schema:sobject:list command, however i think it deserves to belong in some introspective/describe command; afterall it can be CLI retrieved, orgbrowser retrieved, and source tracked.Can someone help make it describable?
Suggestion:
Perhaps add a new command such as “force:schema:list:polymorphicObjects”
And are there others like Activity that share the observed behavior above?
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions