Skip to content

api v60.0 - sf project retrieve - Retrieve of PersonAccount record type metadata file is missing picklist from the contact's custom fields that use custom global value set  #2794

@jtryan0601

Description

@jtryan0601

Summary

After executing sf project retrieve on PersonAccount record type, the metadata file is missing the picklist from contact's custom fields that use custom global value set. The issue is observable on Windows 11 with the latest version of the cli (v2.34.7)

Steps To Reproduce

  1. Spin up a dev sandbox or playground org.
  2. If not enabled, enable the Person Account from Setup.
  3. Add a Global Value Set named Occupations. Add a few picklist values to this global value set.
  4. On the Contact object, add a picklist field with API Occupation__c.
  5. Use the Occupations global value set on the Contact.Occupation__c field.
  6. Navigate to Setup > Object Manager > PersonAccount > Record Types > Occupation > Edit.
  7. Verify that all picklist values are selected.
  8. Open the terminal (or VS Code), and retrieve the PersonAccount.PersonAccount record type.
    Sample cli command: sf project retrieve start -m RecordType:PersonAccount.PersonAccount
  9. Inspect the PersonAccount.recordType-meta.xml file.

project: RecordTypeRetrieveIssue.zip

Expected result

The picklist values for Occupation__pc field exists.

Actual result

The picklist values for Occupation__pc are missing.

System Information

terminal: git bash

sf version --verbose --json

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.34.7",
  "nodeVersion": "node-v18.15.0",
  "osVersion": "Windows_NT 10.0.22631",
  "rootPath": "C:\\Users\\ryant\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli",
  "shell": "C:\\Program Files\\Git\\usr\\bin\\bash.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.13 (core)",
    "@oclif/plugin-commands 3.2.0 (core)",
    "@oclif/plugin-help 6.0.18 (core)",
    "@oclif/plugin-not-found 3.0.14 (core)",
    "@oclif/plugin-plugins 4.3.8 (core)",
    "@oclif/plugin-search 1.0.20 (core)",
    "@oclif/plugin-update 4.2.0 (core)",
    "@oclif/plugin-version 2.0.14 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.14 (core)",
    "@oclif/plugin-which 3.1.5 (core)",
    "@salesforce/cli 2.34.7 (core)",
    "apex 3.0.31 (core)",
    "auth 3.3.27 (core)",
    "data 3.1.11 (core)",
    "deploy-retrieve 3.2.35 (core)",
    "env 3.0.20 (user)",
    "info 3.0.33 (core)",
    "limits 3.1.14 (core)",
    "marketplace 1.0.29 (core)",
    "org 3.5.0 (core)",
    "packaging 2.1.12 (core)",
    "schema 3.1.9 (core)",
    "settings 2.0.31 (core)",
    "sobject 1.1.20 (core)",
    "source 3.1.22 (core)",
    "telemetry 3.1.17 (core)",
    "templates 56.0.23 (core)",
    "trust 3.3.17 (core)",
    "user 3.3.4 (core)",
    "@salesforce/sfdx-scanner 3.21.0 (user)",
    "sfdx-git-delta 5.34.0 (user)"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    validatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions