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, 2022 in SalesForce by surbhi
• 3,820 points
7,696 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.

Hope this helps!

Get Salesforce certification today and become certified!

answered Mar 17, 2022 by CoolCoder
• 4,420 points

Related Questions In SalesForce

0 votes
0 answers

how do i troubleshoot failed rest api calls in salesforce?

Can i know how do i troubleshoot ...READ MORE

1 day ago in SalesForce by Ashutosh
• 29,730 points
11 views
0 votes
0 answers

how do i fix an issue where users can’t see certain list views in salesforce?

With the help of code can i ...READ MORE

1 day ago in SalesForce by Ashutosh
• 29,730 points
14 views
0 votes
0 answers

how do i resolve browser compatibility issues in salesforce lightning?

Can i know how do i resolve ...READ MORE

1 day ago in SalesForce by Ashutosh
• 29,730 points
16 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, 2022 in SalesForce by CoolCoder
• 4,420 points
2,803 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
4,044 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,050 points
1,291 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,050 points
1,058 views
0 votes
2 answers

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

Hi @Vardhan, I took Edureka's Salesforce Online Training, ...READ MORE

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

edited Dec 22, 2021 by Soumya 948 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, 2022 in SalesForce by CoolCoder
• 4,420 points

edited Jun 19, 2023 by Khan Sarfaraz 1,556 views
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, 2022 in SalesForce by surbhi
• 3,820 points
1,056 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP