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

Retrieve Standard Value Sets in Org Browser #1579

Closed
FabienTaillon opened this issue Aug 22, 2019 · 13 comments
Closed

Retrieve Standard Value Sets in Org Browser #1579

FabienTaillon opened this issue Aug 22, 2019 · 13 comments

Comments

@FabienTaillon
Copy link

Summary

No Standard Value Set visible in Org Browser.

Steps To Reproduce:

  1. Open Org Browser.
  2. Click on Standard Value Sets.

Expected result

The list of Standard Value Sets should be displayed.

Actual result

Just displaying "No components available".

Additional information

VS Code Version: 1.37.1 + Extension pack 46.10

SFDX CLI Version: sfdx-cli 7.20.1 (core)

OS and version: MacOS Mojave

@FabienTaillon
Copy link
Author

Actually there are several metadata where it does not work, so I'm sure you already know about it.

@aldoforce
Copy link

any update around this? I'm facing the same problem. Can't retrieve Case status fields.

@aldoforce
Copy link

@FabienTaillon even if you don't use OrgBrowser, the issue is the same with CLI:

sfdx force:source:retrieve -m StandardValueSet

=== Retrieved Source
No results found

@FabienTaillon
Copy link
Author

If you know which StandardValueSet, you can specify then name directly:
sfdx force:source:retrieve -m StandardValueSet:CaseStatus

You can't retrieve all at once with the command because this Metadata Type doesn’t support the wildcard character * (asterisk).

However, regarding the VS Code extension, I would expect to see the list anyway because from a user perspective we don't care that the API is not good. I would even prefer an hardcoded list that would be updated at every release than seeing nothing.

Obviously the best fix would be to fix the API itself.

@AltiusRupert
Copy link

AltiusRupert commented May 15, 2020

In VS Code, you can stick this file into your manifest folder, then click-right and "SFDX: Retireve Source in Manifest from Org"

package-StandardValueSet.xml.zip

AltiusRupert added a commit to DevoteamDCE/sfdx-devoteam-template-OLD that referenced this issue May 15, 2020
    see Salesforce Metadata API Developer Guide for an up-to-date list of values :
    https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/standardvalueset_names.htm

    As noted by Fabien here
    forcedotcom/salesforcedx-vscode#1579 (comment)
    "You can't retrieve all values at once with the 'sfdx force:source:retrieve -m StandardValueSet' command
    because this Metadata Type doesn’t support the wildcard character * (asterisk)."
@MooseAteJack
Copy link

Also having this issue.

There are ways to work around the issue and force:source:pull is fine with seeing change in StandardValueSets but the browser can't find them.

@kennethkim1221
Copy link

kennethkim1221 commented Oct 5, 2020

Hi all. I am experiencing the same thing now. I tried Fabien's suggestion in using sfdx force:source:retrieve -m StandardValueSet:LeadSource but the result was:

=== Retrieved Source
No results found

Anyone figured out how to solve this? Even using the right click SFDX: Retrive this source from Org is not working for me.

@FabienTaillon
Copy link
Author

Have you checked that nothing was retrieved ? I sometimes get a "No results found" message, but the metadata is retrieved anyway.

@dsobkowiakWorkBench
Copy link

Thanks a lot the hint with sfdx force:source:retrieve -m StandardValueSet:CaseStatus helped me out.
Many thanks

@austinmyer
Copy link

I am unable to retrieve the inactive value. Only the active values gets retrieved. Is it a default behavior of source:retrieve command?

@pbattisson
Copy link

Also having this same issue - is this because it doesn't support wildcard in the metadata API?

@MoTalhaSPW
Copy link

sfdx force:source:retrieve -m StandardValueSet:CaseStatus
This command is a life saver. Thank you

sbresin added a commit to sbresin/salesforcedx-vscode that referenced this issue Mar 29, 2022
@trinasfdx trinasfdx added the status:in review pr/issue is being reviewed label Apr 1, 2022
@RitamAgrawal RitamAgrawal removed their assignment Apr 1, 2022
@RitamAgrawal RitamAgrawal removed the status:in review pr/issue is being reviewed label Apr 1, 2022
klewis-sfdc pushed a commit that referenced this issue Apr 14, 2022
* feat(orgbrowser): add support for StandardValueSet

#1579

* test(orgbrowser): add test for StandardValueSet support

* feat: use list from source-deploy-retrieve

Authored-by: Sebastian Bresin <sebastian.bresin@gmail.com>
@klewis-sfdc
Copy link
Contributor

klewis-sfdc commented May 3, 2022

Closing as resolved by #3992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests