-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Describe the bug
Specific object definitions ending in __mdt and __feed are not getting filtered correctly when running the package.xml filter command. They do not contain all the metadata from the original file which results in deployment failures using SFDX MDAPI commands. According to the documentation these types of files are supported by Salesforce and should be deployable: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_custom_objects_list.htm.
To Reproduce
Steps to reproduce the behavior:
- Define a CustomObject metadata type in package.xml that ends with __mdt or __feed. Ensure this CustomObject has custom fields created against it.
<members>MyCustomObject__mdt</members> <type>CustomObject</type> - Run the essentials:metadata:filter-from-packagexml command against that package.xml
- Observe that the custom fields are not present in the resulting file. It only contains a shell of what the object should look like.
- Deploying this out using SFDX MDAPI commands will result in a failure if other metadata defined in package.xml depend on these custom fields.
Expected behavior
Filtered sub-metadata (fields, listviews, etc) should be filtered correctly and included in the produced file similar to standard objects and custom objects ending in __c.
Metadata
Metadata
Assignees
Labels
No labels