Questions tagged [global-picklist]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

Record type using global picklist shows "bad value for restricted picklist error" twice

I have a record type using global picklist values. If any value is deactivated from the global picklist, it gets removed from the record type as well, which is correct; but it shows the "bad ...
user avatar
  • 11
-2 votes
2 answers
48 views

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

Is there a script I can use or a way to search all of Salesforce to find where an API is used? I need to update a global picklist, and don't want to run into any issue after updating the field label ...
user avatar
  • 29
0 votes
0 answers
19 views

Update "sorted" attribute of GlobalValueSet via Metadata API inconsistent

I have noticed some strange behaviour when deploying changes to GlobalValueSet definitions via the Metadata API (Salesforce CLI via VS Code extension) and I wonder if this is a bug? I could not find ...
user avatar
  • 383
0 votes
0 answers
22 views

How can I create API names in global picklist with 500 values in a fast way? [duplicate]

I have file like this with about 500 values: I am creating Global Value Set. Column A is for Label and column B is for API names. Both columns contains about 500 records. I know that I can create a ...
user avatar
  • 1
0 votes
2 answers
3k views

Not able to update picklist fields as unrestricted from restricted

The option “ Restricted picklist to the values defined in the value set “ greyed out. I need to unrestricted this field. I am not sure why it is greyed out? How can I unrestricted this field now?
user avatar
  • 383
1 vote
1 answer
140 views

Picklist value present in global valueset but not in objects

I have a global valueSet named position. It has 17 values like Top 1, Top 2, Top 3, ..., Top 40, Top 1 vec, Top 6 vec, Top 10 vec This valueSet is used on 4 fields on 3 objects : Product2 and 2 ...
user avatar
0 votes
1 answer
427 views

Cannot remove global picklist after deletion picklist

I am trying to delete a global picklist but this references a deleted picklist. How do I resolve this?
user avatar
  • 2,090
0 votes
0 answers
59 views

Assigning Global Picklist Values to recordtypes from Metadata API

I need to assign some newly created global picklist values to some record types in my application via Metadata API only. I have referred some online tutorials and got to know that this feature is not ...
user avatar
1 vote
1 answer
1k views

Restrict Picklist values without record type

The situation is as follows: I have a picklist on Leads derived from a global value set. However, I don't want to show all value from the global value set. Is it possible to achieve this without ...
user avatar
1 vote
1 answer
799 views

Retrieve Globalvalueset without Object_API_Name and Field_API_Name

We used to retrieve Picklist values in Apex through and object and a field like this : Schema.DescribeFieldResult F = <Object_API_Name>.<Field_API_Name>.getDescribe(); Schema.sObjectField ...
user avatar
  • 160
3 votes
2 answers
4k views

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

I'm unable to deploy a picklist field that was promoted to a global value set to my production environment. The global value set, and the new field in another object that uses it are both OK, but when ...
user avatar
1 vote
1 answer
894 views

Can we query State and Country/Territories Picklist via SOQL? [closed]

We need to check the validations manually in Batch Apex while creating SF Accounts? We have a scenario where we store all the data in our Custom Object (brought the data from the third party). In a ...
user avatar
1 vote
0 answers
128 views

Creating Global Picklist using GlobalValueSet of MetadataService API through APEX

I am executing below code in Dev Console.Code is executing without any error, but Global picklist is not getting created. any suggestion? MetadataService.MetadataPort service = new MetadataService....
user avatar
0 votes
1 answer
210 views

Global Picklist Value Sets

I have a ObjA_custom_field__c on Object_A__c, ObjB_custom_field__c on Object_B__c. Both these are picklist fields, that have the same value and serve same purpose. Instead of remembering to add same ...
user avatar
0 votes
1 answer
2k views

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

I'v been used tooling API for update Global value set. but now the new picklist values i'v added doesn't display at the picklist field. I'v notice to the check box when adding new values to global ...
user avatar
  • 13
1 vote
1 answer
661 views

Delete/Update Global Value Set values using Tooling API

I'm trying to update or delete values in my Global Value Set. I succeed insert new values with the code below: but when I change SetMethod to DELETE I get Bad Request with status code 400 is there ...
user avatar
  • 13
-1 votes
1 answer
638 views

Add a picklist value to Global Value Set in test class

I am working on test class that inserts an Opportunity with the opportunity products using the correct price book/price book entry. The OpportunityLineItem has a ProductSelected__c picklist field. We ...
user avatar
0 votes
2 answers
65 views

picklist options change depending on previous picklist

I have a requirement to have 2 picklists. The user should select an option in Picklist 1, and based upon their selection Picklist 2 will only display certain specific options. These options should ...
user avatar
  • 151
1 vote
1 answer
62 views

the order rule of multiple picklist values from SOQL

What is the order rule of multiple picklist values? When I try to SELECT global multiple picklist values by SOQL which is used in custom object, the order of multiple values is not same as the order ...
user avatar
  • 327
0 votes
1 answer
1k views

How to move newly added picklist value from sandbox to test system

I have made changed in the global picklist. Now, I wanted to move the changes from one sandbox to another sandbox. How to move newly added picklist value from sandbox to test system.
user avatar
1 vote
1 answer
422 views

access to global picklist value from apex or trigger

How can we upsert data to global picklist value by using apex? I wanna catch record data from custom object by soql in apex, and upsert the data to global picklist value. Thank you in advance.
user avatar
  • 43
0 votes
1 answer
78 views

upsert from apex trigger

How can we upsert records to glocal picklist values from trigger? I wanna get existing records from a custom object and upsert the records to glocal picklist value by trigger. What type of trigger ...
user avatar
  • 43
3 votes
0 answers
3k views

How to access global picklist value set in apex code [duplicate]

I want retrieve Global picklist Value Set and assigned them into a drop down box using apex. How could I resolve this?
user avatar
  • 161
0 votes
0 answers
110 views

Testing class is getting failed after converting a picklist values into global value set

I have a custom picklist field industry segment in opportunity object and the picklist has the value "Manufacturing" and it has access to all the record types. I have a test class, creating ...
user avatar
1 vote
1 answer
1k views

Salesforce DX referring to Global picklist "CustomField not found."

I have successfully deployed a Global Picklist "State" in scratch Org. Following deployment I am referring the global picklist in a custom field. I am get the following deployment error API Name : ...
user avatar
3 votes
0 answers
896 views

How to create/update picklist using metadata service api -- MetadataService.CustomField deprecated

I am trying to create and update picklist and adding its value dynamically using metadata service api. But I got to know that MetadataService.CustomField.picklist is deprecated and using valueSet ...
user avatar
  • 109
1 vote
3 answers
5k views

Update existing picklist values with a Global value set

I have a custom picklist with few values in Account object. This field is referring in apex classes and visualforce pages. I want replace its existing values with a global value set. When I edit the ...
user avatar
  • 3,873
0 votes
2 answers
2k views

Endpoint for getting GlobalValueSet using REST API

I'm trying to use the REST API to get the list of values for a Global Value Set. Since it is not a field on a specific SObject, I don't think you can query for the values. I am successfully ...
user avatar
  • 171
0 votes
1 answer
1k views

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

I have a Custom Object that includes a Picklist which uses Global Value Set. Now, while deploying this to Production, it's giving me Payload Error while validating the Change Set. Missing feature, ...
user avatar
2 votes
0 answers
404 views

Value picklist set - how to make them dependant picklists?

I have converted a picklist to Global Valueset picklist, but the 'Controlling' option is now missing from the field. Is that by design? Can fields that are based on Global Picklist (Value sets) not ...
user avatar
  • 5,445
12 votes
0 answers
9k views

SFDX Deploy: Global Value Set Cannot Be Resolved

I am trying to use DX to deploy to a sandbox. It has been a major hassle. At this point the only error I get is this: Global value set 'External_Evaluation_Required__c' in record type 'Exception' ...
user avatar
  • 1,018
0 votes
1 answer
6k views

How to retrieve Global picklist using metadata api?

I am trying to implement a retrieval of global picklist values in apex using metadata API but I am not able to understand how to do that. Anyone having any idea. I was looking at https://developer....
user avatar
  • 23
0 votes
1 answer
1k views

Use global picklist value set association

Is there a way to find out using SOQL the association of global value set picklist with custom field? I have custom field (test__c) dataType as a picklist and I select Use global picklist value set ...
user avatar
  • 6,614
-1 votes
1 answer
2k views

Limitations of the Global Picklist?

What all are the limitations of the global picklist ? I dont see any proper documentation of the salesforce and some web post are vague.
user avatar
  • 1,520
0 votes
2 answers
2k views

Lightning Component: Select locale language based on a picklist value

I created a form using lightning components. So, in lightning components is there a way to change the labels of the fields based on a language selected through a picklist by the user?
user avatar
1 vote
1 answer
308 views

How to show specific pick list values in pick list based on Type, Category etc?

I have a Unique RecordType, Category, SubCategory, Type in my application. I have so many Status Picklist values around 100. Based on the combination of RecordType, Category, SubCategory, Type, I ...
user avatar
5 votes
2 answers
1k views

Will trigger fire if global picklist value is updated?

I have a global picklist that I use for a reference object. When a record is created it queries this reference table and populates a different object that functions as a warehouse with the value from ...
user avatar
  • 1,580
-1 votes
1 answer
4k views

Promote to global value set is disabled for my organization

Promote to global value set is disabled for picklist. I can see the version of org is summer 17.
user avatar
  • 45
2 votes
0 answers
2k views

Limitation in Global Picklist while deploying via ChangeSet?

Is there any issue or Limitation with Global Picklist while its being deployed from One ORG to another. I had some Custom Fields and a Global Picklist field. I have written a Trigger on Case to ...
user avatar
0 votes
2 answers
631 views

Global Picklist deployment using Change Set and UnitTest execution failing

I have some trouble with Global-Picklist fields and Unit Test after Deployment via Chnage Set in another ORG. I have a couple of Custom Fields and a Global Picklist field on Case object. I have ...
user avatar
0 votes
1 answer
323 views

Territory assignment rules based on global state/territory pick list

Looking for confirmation that territory assignment rules based on global state/territory picklist code value don't work against the ISO code and only the Name field of the picklist value. I am unable ...
user avatar
6 votes
1 answer
2k views

Mass Delete Global Value Set Values

Is there (what's the most efficient) way to mass delete Global Value Set values? Removing/Replacing them manually one by one in the UI is not acceptable. I thought I might be able to do it via ...
user avatar
0 votes
0 answers
564 views

How do I disable a field that's a global picklist from recordtypes where it's not required?

In my Account object I have 3 record types - customers, suppliers and other. For suppliers I need some fields that are not required for customers, and some of these fields are global picklists as they ...
user avatar
  • 1,377
3 votes
1 answer
6k views

Error: Cannot change which global value set this picklist uses

While deploying using Jenkins I get the error: Error: Cannot change which global value set this picklist uses I have made a global picklist which has three values out of which one is default. <...
user avatar
2 votes
0 answers
142 views

Global Picklist Valueset settings does not get updated on doing meta deployment

I was trying to update setting "Sort values alphabetically, not in the order entered. Values will be displayed alphabetically everywhere." of existing global picklist valueset, but found that ...
user avatar
11 votes
2 answers
17k views

Retrieve globalpicklist/globalvalueset without SOQL

Is it possible to retrieve the values of a Global Picklist/GlobalValueSet using Schema class without a SOQL ?
user avatar
  • 997
1 vote
2 answers
1k views

Process Builder : Global Picklist Value Fails

Using process builder and I try to set the value of a picklist field on a related object that is using global picklist functionality I get the error below. INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST:...
user avatar
  • 2,493
1 vote
0 answers
107 views

Error while transferring pick list field between two objects via Visual flow with Global Picklist

I have a visual flow and want to copy the values of a multi-select pick list field from one object to the other. Both objects have a multi-select pick list field based on the same global pick list. ...
user avatar
1 vote
1 answer
1k views

Global Picklist Metadata in Mavensmate

I am trying to deploy global picklist metadata through Mavensmate but I cannot find the global picklist metadata type inside my mavensmate subscription index. Are global picklist metadata supported?
user avatar
1 vote
1 answer
408 views

Does global picklist supports Localisation?

Please help me on below points: I have a requirement where I need to make global picklist values as per locale. How can I achieve this. I don't want to use it through custom labels as it has around ...
user avatar