18 votes

Retrieve globalpicklist/globalvalueset without SOQL

Schema.DescribeFieldResult F = <Object_API_Name>.<Field_API_Name>.getDescribe(); Schema.sObjectField T = F.getSObjectField(); List<PicklistEntry> entries = T.getDescribe()....
Hari Enaganti's user avatar
10 votes

Converting an Existing Picklist to Use Global Picklist

There is no way to convert existing pick list to use global pick list. While modifying any pick list on user interface we are not given any option to choose global pick list. I explored the metadata ...
Mukesh Verma's user avatar
  • 1,906
9 votes
Accepted

Retrieve globalpicklist/globalvalueset without SOQL

My strategy here would simply be to describe a picklist field that implements the Global Picklist. SObjectField picklistUsingGlobal = SObjectType.MyObject__c.fields.PicklistUsingGlobal__c....
Adrian Larson's user avatar
  • 150k
6 votes
Accepted

How to access a global picklist in Visualforce?

It doesn't look like it's possible to access global picklists in Apex/Visualforce right now. At least, not the same way that you'd access a fieldset or a (Hierarchy) Custom Setting. The best ...
Derek F's user avatar
  • 61k
6 votes
Accepted

Updation to Global Picklist Value Set through Tooling API makes the existing values deactivated state in salesforce

This is the standard behavior with picklists. When you perform a deployment against the picklist, the value set is updated to match the deployed picklist values, and any values existing in the org ...
David Reed's user avatar
  • 92.6k
5 votes

Add a picklist value to Global Value Set in test class

How do I setup a new test value into the Global Value set and add the same into the ProductSelected__c picklist? You don't. You can't modify metadata of any type in a unit test. Also, we are not ...
sfdcfox's user avatar
  • 487k
5 votes

Promote to global value set is disabled for my organization

did you mean, the promote to global picklist button greyed out? if yes, then most probably you have record type in object, follow the steps in this link. Else it can be one of the reasons mentioned ...
night crawler's user avatar
5 votes

Does global picklist supports Localisation?

Yes, the Translation Workbench supports Global Picklists. You can use those global picklists across multiple objects. The translations will work correctly for every picklist that uses a global ...
sfdcfox's user avatar
  • 487k
5 votes
Accepted

How to deploy picklist field whose value set was changed from local to global?

There's a lot of pain here for orgs that retroactively want to convert to global picklists (since global picklists came out in beta in Summer '16). I won't be able to tell you why they exist other ...
Kris Goncalves's user avatar
4 votes
Accepted

Mass Delete Global Value Set Values

I don't think there is any native way or Solution but when when I done some search I found a Idea mass delete picklist values (setup).Which you can vote. There I also found a Solution(Hack) which you ...
Tushar Sharma's user avatar
4 votes

Update existing picklist values with a Global value set

Unfortunately you cannot yet do what you are asking. The other answers here assume you want to convert an existing Picklist to a Global Value Set but I don't believe that's what you're asking. I think ...
kd7iwp's user avatar
  • 233
4 votes
Accepted

Cannot remove global picklist after deletion picklist

The deleted picklist field is still in the system equivalent of a recycle bin (so that you can restore it if needed). In setup, go to the object where you deleted the picklist, open the custom field ...
David Cheng's user avatar
  • 7,069
4 votes

Which special characters is not allowed when add new picklist value?

As far as I'm aware, only ; is diallowed; this is because, in SOQL, this character is used with INCLUDES and EXCLUDES to select values: SELECT Id FROM Account WHERE MultiIndustry__c IN ('A;B','C;D') ...
sfdcfox's user avatar
  • 487k
3 votes
Accepted

picklist options change depending on previous picklist

What you're describing is built-in functionality via Dependent Picklists. To use the terminology in the documentation, Picklist 1 would be your controlling field, and Picklist 2 would be your ...
David Reed's user avatar
  • 92.6k
3 votes
Accepted

Global Picklist Metadata in Mavensmate

Yes, they are supported. It sometimes happens that they are not selectable however. If you have MavensMate version 6.0, to solve this, open your project, click MavensMate -> Metadata -> Update Project ...
user254875486's user avatar
3 votes
Accepted

Converting an Existing Picklist to Use Global Picklist

We have option to do this in salesforce. This feature has been added as part of Summer 2017: Promote Your Picklist Fields to Global Value Sets Promote a single picklist field into a global value set ...
GetSetSalesforce in's user avatar
3 votes
Accepted

Error: Cannot change which global value set this picklist uses

I don't know how and why but when I changed the global picklist API name to match the field name. It worked! <fields> **<fullName>CallStatus_MDE__c</fullName>** <...
Vibhu Dadhichi's user avatar
3 votes
Accepted

Payload Error while Deploying Global Value Set with Language Translations in Production

The Issue was that I didn't check whether the Translations are Enabled in my Target Org. You can set that by Going to Setup > Translation Setting > Enable.
Kamal Thakur's user avatar
3 votes
Accepted

Will trigger fire if global picklist value is updated?

interesting question and I just gave it a test. change in global picklist value (both label & api name) is NOT triggering the object trigger where a picklist field uses the global picklist set , ...
Vamsi Krishna Gosu's user avatar
3 votes

How to find where API Values of Global Picklist are used in Salesforce?

You can go to Field and click on where it is used button and all the references will be listed. Just be mindful of the fact that if that field name is used as a string in some query then it will not ...
Balwinder Kumar's user avatar
2 votes

Global Picklist deployment using Change Set and UnitTest execution failing

I received this error earlier today & was able to resolve it by adding all the related Record Types to my Change Set. So in your situation, I believe adding all the Case Record Types to your ...
Jack Odell's user avatar
2 votes

How to retrieve Global picklist using metadata api?

When retrieving Standard Picklists you need to use StandardValueSet in your xml package just like this: <type> <member>CaseOrigin</member> <name>StandardValueSet</name&...
JoseStack's user avatar
2 votes
Accepted

Endpoint for getting GlobalValueSet using REST API

You can query for GlobalValueSet via the Tooling API: /services/data/v41.0/tooling/query?q=select+id+from+globalvalueset And, if you had the right URL, you'd get a valid response: /services/data/...
sfdcfox's user avatar
  • 487k
2 votes

Add new picklist values to all Record Types that use this Global Value Set

At the metadata level, you have to deploy all the values to the record types (found in the Object metadata). There's no "flag" in the API to do this automatically, so you just need to deploy the ...
sfdcfox's user avatar
  • 487k
2 votes
Accepted

Delete/Update Global Value Set values using Tooling API

You cannot do a delete call. The easy way to see what you can and cannot do is to look at the Tooling API documentation for GlobalValueSet You should be able to update an existing value as long as ...
Kris Goncalves's user avatar
2 votes

access to global picklist value from apex or trigger

You would want to use the GlobalValueSet metadata, and it is accessible via the Metadata API. To make updates to the metadata via apex, you can use the FinancialForce Metadata API Wrapper. Here is ...
PartOfTheOhana's user avatar
2 votes
Accepted

Retrieve Globalvalueset without Object_API_Name and Field_API_Name

There is no easy way to do this without using tooling or Metadata API. Using tooling API you can retrieve it using the below pseudo codee, String GLOBALVALUESETNAME = 'xyz'; //name of the global ...
Mohith Shrivastava's user avatar
2 votes
Accepted

Picklist value present in global valueset but not in objects

I found out the problem, then I saw sfdcfox did before me, once again : I simply forgot to check this box : That's why, as found @sfdcfox, the value wasn't available in my picklists. I just have to ...
Emmanuel BRUNO's user avatar
2 votes

Not able to update picklist fields as unrestricted from restricted

You cannot uncheck the restriction if the picklist is using a Global value set. A global picklist is a restricted picklist by nature. Only a Salesforce admin can add to or modify its values. You ...
Vinay's user avatar
  • 3,260
2 votes
Accepted

Can the default value of a managed package global value set be changed in the subscriber org?

The short answer is yes. Here's an example where the managed package didn't set a default at all and I could set one of the existing values as the default: Another example where the managed package ...
Phil W's user avatar
  • 35.6k

Only top scored, non community-wiki answers of a minimum length are eligible