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

force:source:retrieve -n "PackageName" doesn't retrieve Custom Object sub components. #644

Closed
jjulicher opened this issue Sep 28, 2020 · 2 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@jjulicher
Copy link

jjulicher commented Sep 28, 2020

Summary

Short summary of what is going on or to provide context.

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.

  1. Create a Custom Object named 'TestObject'
  2. Create a Custom field on TestObject named TestField type Text(255)
  3. Create a deployment package and name it 'TestRetrieve'.
  4. Click Add custom field 'TestField' to package.
  5. Click Add custom object 'TestObject'
  6. run sfdx force:source:retrieve -n "TestRetrieve" -u <YourOrgUserName>
  7. CD into TestRetrieve\main\default\objects\TestObject__c\

Expected result

Describe what should have happened.

Expected directory 'TestObject__c' to contain a fields folder with a field definition metadata file called 'TestField__c.field-meta.xml

Actual result

Describe what actually happened instead.

TestObject__c directory just contains TestObject__c.object-meta.xml

and no field files or any other sub files.

Additional information

Feel free to attach a screenshot.

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.74.1 wsl-x64 node-v14.11.0

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)

OS and version: Windows 10 version 1909 Build 18363.1082 running sfdx under WSL 2 Ubuntu 20.04

@shetzel shetzel added the bug Issue or pull request that identifies or fixes a bug label Sep 29, 2020
@shetzel
Copy link
Contributor

shetzel commented Sep 29, 2020

Thanks for reporting. I reproduced this and we'll work on a fix.

@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9300222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

4 participants