function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sowmya_umeshsowmya_umesh 

How to fetch specific Field details in Rest API ?

We can get Object details in Rest resource using /sobjects/ObjectName/describe (which gives all the fields), Same way how to get specific field details in REST Api
Sudipta Ghosh 9Sudipta Ghosh 9
Hi,
We need to use Tooling Api for that
SELECT QualifiedApiName, (Select DataType From Particles) FROM FieldDefinition WHERE EntityDefinition.QualifiedApiName ='Account'
 
Amit Chaudhary 8Amit Chaudhary 8
Please check below post REST API. I hope that will help you
1) http://amitsalesforce.blogspot.in/2017/01/learn-rest-api-in-salesforce-how-to.html

2)  To query :- /services/data/v36.0/query 

Sample URL to get any record
URL:- /services/data/v36.0/query?q=SELECT+id,name,profile.name+FROM+user+WHERE+username='amit.salesforce21@gmail.com'

 
sowmya_umeshsowmya_umesh
I needed picklist values for a specifc account field. 
Sumeet GholapSumeet Gholap
@Amit Chaudhary 8, Your solution worked for me. Thanks.