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
Sailor67Sailor67 

How to check accessible fields for SOQL via REST API?

We have a beta version of a mobile app using the REST API.

 

It seems some of our early users are unable to access some standard fields for sales objects. As an example, a SOQL query including the Account.AccountNumber returns "Error, no such column..."

 

Has this anything to do with access rights on a field level? Or, are not all fields supported depending on other roles/permissions? Is there any way to call an API-method for every user and first check which fields are accessible for each objects?

 

Thanks in advance

 

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

Field Level Security can affect which objects & fields are available in the API. The describe resources in the REST API will detail which sobjects & the fields within them are available to the calling user. e.g. see /services/data/v27.0/sobjects/Account/describe

All Answers

SuperfellSuperfell

Field Level Security can affect which objects & fields are available in the API. The describe resources in the REST API will detail which sobjects & the fields within them are available to the calling user. e.g. see /services/data/v27.0/sobjects/Account/describe

This was selected as the best answer
Sailor67Sailor67

Solved, thanks!!