salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

Not retrieving managed components alongside asterisks

Open jh480 opened this issue 1 year ago • 2 comments

Summary

"Retrieve Source in Manifest" will ignore members above or below wildcards.

Steps To Reproduce:

  1. Write a manifest xml with both a wildcard-asterisk entry and at least 1 managed component of same type (like "ApexClass").
  2. Right-click manifest and select "SFDX: Retrieve Source in Manifest from Org".

Expected result

SFDX should retrieve both all unmanaged components as well as the explicitely specified managed components.

Actual result

SFDX retrieves only the unmanaged components.

Additional information

image

Salesforce Extension Version in VS Code: v55.8.0

SFDX CLI Version: sfdx-cli/7.163.0 win32-x64 node-v16.16.0

OS and version: Win10 Pro 21H2

jh480 avatar Sep 16 '22 21:09 jh480

Hi @jh480 I think we might be encountering a limitation in the API here just reading though the Packages section here.

A couple of sanity checks:

  1. What happens if you use sfdx from the command line to pull the same metadata from manifest? sfdx force:source:retrieve -x path/to/package.xm
  2. How is the managed component in your org? Is it the packaging org? Is it installed via managed package?
  3. If you remove the '*' from the manifest and only list the managed class does retrieve work as expected?

gbockus-sf avatar Sep 20 '22 17:09 gbockus-sf

Hello gbockus-sf,

I'm unsure wether it's the API, seeing as a retrieve via the Ant Migration Tool retrieves both all unmanaged classes and the specified managed class (or ~any other metadata type).

  1. SFDX retrieves only the unmanaged components.
  2. It is installed via managed package, on a Developer sandbox.
  3. Yes, listing unmanaged components without asterisk will retrieve them, also together with any unmanaged (explicitely listed) components.

jh480 avatar Sep 23 '22 12:09 jh480

@gbockus-sf, jftr, should I have pinged you?

jh480 avatar Oct 11 '22 08:10 jh480