3

I have a GlobalValueSet in my managed package, and in a subscriber org I've added values to it. e.g. A 'Country' global picklist in the managed package, then in a subscriber org I add the countries I care about.

I'm trying to migrate those changes from one subscriber sandbox to another, however I'm getting an error:

[sf:deploy] Component Failures:

[sf:deploy] 1. globalValueSets/MY_NAMESPACE__Country.globalValueSet -- Error: Cannot modify managed object: entity=SharedPicklistDefinition, component=null, state=MANAGED_INSTALLED - picklists

Is there a way to migrate the values of a global picklist to another org, without having to manually create them in the target org?

1 Answer 1

1

Using the Salesforce Migration Tool, you can put a global picklist to the build file like this (the API name has underscores between words but no suffix):

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>My_List_Name</members>
        <name>GlobalValueSet</name>
    </types>
    <version>38.0</version>
</Package>
3
  • I take it you're referring to the ANT Migration tool?
    – Adrian Larson
    Feb 6, 2017 at 21:48
  • Yes, I meant the ANT migration tool. Thank you for the clarifying question.
    – ASturt
    Feb 6, 2017 at 21:52
  • 1
    This doesn't seem to work for Global Picklists that are part of managed packages.
    – abd3721
    Apr 3, 2018 at 23:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .