forcedotcom / dependencies-cli

SFDX plugin for metadata dependencies tooling API
BSD 3-Clause "New" or "Revised" License
106 stars 18 forks source link

dependency:component:report doesn't know what object custom fields belong to #14

Open brianmfear opened 4 years ago

brianmfear commented 4 years ago
sfdx dependency:component:report -m -u "alias"

The resulting package.xml doesn't know what each object is:

    <types>
       <members>undefined.contact_email_header__c</members>
       <members>undefined.email_last_modified_date__c</members>
       ...
       <name>CustomField</name>
    </types>

The --dev-debug logs don't seem to show anything unusual. This results in an unusable package.xml for retrieving packages/dependencies.

I will be happy to provide whatever extra information I can.

Versions:

Plugins: @salesforce/sfdx-diff 0.0.6 dependencies-cli 2.0.1 (link) salesforce-dx 49.6.1

Node: v12.18.3

Windows: 10.0.17134.1667 (64-bit)

Honorable mentions:

I had to install this via:

npm install --global dependencies-api
sfdx plugins:link $APPDATA/.../dependencies-cli/
pgonzaleznetwork commented 3 years ago

@brianmfear This is a limitation of the MetadataComponentDependency tooling object. If you use sfdc-soup or HappySoup.io, both of all them will give you the object name in the package.xml for fields, validation rules, layouts, or any other metadata type that belongs to an object.

https://github.com/pgonzaleznetwork/sfdc-happy-soup https://github.com/pgonzaleznetwork/sfdc-soup