How do i get all values from a global pick list in salesforce using REST Api

0 votes
I'm aware that I can access the picklist's values using a call to describe an object.

Is it feasible to get the values without adding the field to an object and query the values regardless of the object in which they are used?

Is it possible to use GlobalValueSets in the same way? They have been used since API 38.0 and onwards, according to the documentation.
Mar 16 in SalesForce by surbhi
• 3,810 points
733 views

1 answer to this question.

0 votes

Since API 39.0 it is possible to access GlobalValueSets through the Tooling API. It is possible to access the GlobalValueSet without adding the field to an object.

The following REST call should be used:

GET /services/data/v39.0/tooling/sobjects/GlobalValueSet/{ID}

Where the ID can be found in SalesForce > Global Value Set > The Global Value Set you wish to access via the API > Grab the ID from the URL.

answered Mar 17 by CoolCoder
• 4,360 points

Related Questions In SalesForce

0 votes
0 answers

Salesforce API: How to identify a Case from an email reference code ("[Ref: ... :Ref]")?

1 I'm writing a Windows service that will ...READ MORE

Apr 5 in SalesForce by surbhi
• 3,810 points
57 views
0 votes
1 answer

Apex (Salesforce) read json from response and store it in a string variable

String jsonStr = '{ "oktaToken":"eyJraWQiOiIyNlN1NHFMNnVVZTVJX2M5X2Z3WmZvX09ON0dNUHRtQzlEeHFsTGplLS00IiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULlVINmdIOF9BcWJ" }'; Map<String, String> ...READ MORE

answered Mar 3 in SalesForce by CoolCoder
• 4,360 points
1,036 views
0 votes
0 answers

Apex (Salesforce) read json from response and store it in a string variable

I am trying to hit a API ...READ MORE

Mar 4 in SalesForce by surbhi
• 3,810 points
149 views
+2 votes
2 answers

Salesforce Interview questions

Here are some questions very important for ...READ MORE

answered Jan 11, 2019 in Career Counselling by Suresh
• 720 points
1,873 views
0 votes
1 answer

How to connect to salesforce from tableau?

Hi, follow these steps to connect to Salesforce: 1. ...READ MORE

answered Mar 25, 2019 in Tableau by Cherukuri
• 33,010 points
302 views
0 votes
1 answer

Power BI - Salesforce

Hi, Follow below steps: 1. Go to Data source. 2. ...READ MORE

answered Mar 25, 2019 in Power BI by Cherukuri
• 33,010 points
182 views
0 votes
1 answer

What is the best training for Salesforce ADM-201 Exam?

Hi @Vardhan, I took Edureka's Salesforce Training that covers all ...READ MORE

answered Jun 3, 2021 in Others by Jaya
• 140 points

edited Dec 22, 2021 by Soumya 216 views
0 votes
1 answer

How do I create a scratch org with Salesforce Platfom licenses?

Answer from Salesforce support was to include ...READ MORE

answered Apr 6 in SalesForce by CoolCoder
• 4,360 points
117 views
0 votes
1 answer

How can i use select * in SOQL query in Salesforce?

SOQL is not the same as SQL. ...READ MORE

answered Mar 3 in SalesForce by CoolCoder
• 4,360 points
224 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP