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

I can't get inactive values from a custom picklist field. #1047

Closed
julycm92 opened this issue Jun 10, 2021 · 1 comment
Closed

I can't get inactive values from a custom picklist field. #1047

julycm92 opened this issue Jun 10, 2021 · 1 comment

Comments

@julycm92
Copy link

Summary

I am trying to retrieve the inactive picklist values from an unrestricted picklist in order to be able to deactivate them in the target org via deployment.

Steps To Reproduce:

  1. Go to a custom picklist field.
  2. Deactivate an existing value.
  3. Retrieve custom picklist field.

Expected result

The inactive value should be in the metadata in order to be able to deploy this deactivation via deployment.

Actual result

The inactive value is not in the metadata.

Additional information

sfdx-cli/7.103.0 win32-x64 node-v14.17.0

@mshanemc mshanemc transferred this issue from forcedotcom/sfdx-core Jun 17, 2021
@mshanemc
Copy link
Contributor

mshanemc commented Aug 2, 2021

Can you try this using the new source plugin?

when I repeat your steps, I see this result (see the scroll down to the end)

<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>testPicklist__c</fullName>
    <externalId>false</externalId>
    <label>testPicklist</label>
    <required>false</required>
    <trackFeedHistory>false</trackFeedHistory>
    <type>Picklist</type>
    <valueSet>
        <restricted>true</restricted>
        <valueSetDefinition>
            <sorted>false</sorted>
            <value>
                <fullName>1</fullName>
                <default>false</default>
                <label>1</label>
            </value>
            <value>
                <fullName>2</fullName>
                <default>false</default>
                <label>2</label>
            </value>
            <value>
                <fullName>4</fullName>
                <default>false</default>
                <label>4</label>
            </value>
            <value>
                <fullName>5</fullName>
                <default>false</default>
                <label>5</label>
            </value>
            <value>
                <fullName>3</fullName>
                <default>false</default>
                <isActive>false</isActive>
                <label>3</label>
            </value>
        </valueSetDefinition>
    </valueSet>
</CustomField>

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

No branches or pull requests

2 participants