1

I have a new set of picklist values based on the record types of a custom object. How do I enable them 'selected' by default when the managed org's package is upgraded? These new set of picklist values are also in the master picklist.

My custom object has different sets of picklist values depending on the record type.

When I upgrade an org and add a picklist value, they don't get "selected by default" and needed to be manually added to the picklist values.

How do I make them selected without going through the UI manually?

RecordType-PicklistValue-DontGetSelectedByDefaultOnOrgUpgrade

picklist values were added via xml

8
  • Welcome to SFSE! When you say "upgrade an org", what do you mean this? Is it a Production refresh or are you using tooling to deploy from local/shared source control?
    – TSmith
    May 10, 2021 at 8:18
  • Probably it is meant upgraded as newer version of a package is installed @TSmith
    – kurunve
    May 10, 2021 at 11:41
  • @TSmith, yes kurunve is correct. Upgrade to a newer version of a managed package. We are adding picklist values to certain record types. The picklist values were added via xml. It's a pain to have the support team/installers to go through each record type and manually select and add the available picklists values. May 10, 2021 at 23:25
  • Are you delivering upgrades via push upgrades? Can you please edit your post to flesh out the context?
    – David Reed
    May 10, 2021 at 23:37
  • Done @DavidReed. No, not push upgrades. Clients get the package and upgrade their own orgs. May 11, 2021 at 2:42

1 Answer 1

0

Upgrades will not update certain types of settings, including page layout configurations and record type settings. This is because it may cause unexpected changes in the subscriber's organization. You should include the upgrade steps as a manual post-install step for subscribers moving between the old version and the new. Of course, you could automate it a bit with a metadata wrapper, but you'll still need to provide a page for them to upgrade with.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.