Closed codefriar closed 1 month ago
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.
Hey @codefriar - this is really a limitation of the metadata API ☹️ - from https://developer.salesforce.com/docs/atlas.en-us.252.0.api_meta.meta/api_meta/manifest_samples.htm
Note how you work with the standard Account object by specifying it as a member of a CustomObject type. However, you can’t use an asterisk wildcard to work with all standard objects; each standard object must be specified by name.
I thought that at one point, we had a warning explaining that if you needed sObjects, they had to be explicitly retrieved
using the sf project generate manifest --from-org
command will generate a manifest with EVERY metadata type in your org, you can then remove what's not needed, but sObjects are listed under CustomObjects
correctly
@WillieRuemmele - Thanks for the quick reply.
I have ... any number of questions, but let me start of with this one. I know I'm a week late (to have talked to them at dreamforce) but ... who's the product owner for the metadata api? can you put us in touch? Seems like after ~60 versions of the metadata api, we can make this a thing, yes?
My proximate use case would result in multiple retrieve calls if i resort to using the package.xml. My org is too big to pull everything at once; hence the -m
flags
@codefriar - yes, the mdapi has it's known number of quirks, "features", and features 😉 - She's on twitter. Even with that said, the varied wildcard support of metadata is something we've had to work around while developing a lot of our libraries
I reached out.
In the interim, I'm attempting to write a query that will identify customizations made to standard objects from the metadata catalog.
Summary
Calling
sf project retrieve start -m CustomObject
orsf project retrieve start "CustomObject:*"
both fail to retrieve standard objects - without warning or error. This is ... counter intuitive, to say the least.Steps To Reproduce
Execute:
sf project retrieve start -m CustomObject
orsf project retrieve start "CustomObject:*"
Any repository will work with this issue.
Expected result
EITHER:
-m CustomObject
to retrieve standard and custom objects. I'm kind of at a loss as to why it wouldn't.I am aware that I can create a pacakge.xml file to do this retrieve. What I don't understand is ... why
-m CustomObject
doesn't function as ... well, I expect. In our present use case, writing a package.xml isn't exactly a ... convenient option. it will result in 2 retrieve calls happening.Actual result
Only custom objects and custom metadata objects are retrieved.
Additional information
System Information
Mac os Sonoma 14.6.1, with ZSH