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

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
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

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

Sample URL to get any record
URL:- /services/data/v36.0/query?q=SELECT+id,name,''

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