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
greg-ugreg-u 

Isuue accessing fields removed from detail layout by WS API

Hi all,

I have a problem accessing fields removed from the detail layout - actually Opportunity.amount ?

I'm accessing this field with a query WS API call, with System Administrator Profile.

imho, System Administrator has the right "read all data" + "write all data" - why then this issue
=> INVALID_FIELD, ERROR at Row:1:Column:58 No such column 'Amount' on entity 'Opportunity'

I'm experience this problem on Enterprise and Professional orgs

Please advise.

Thanks
Gregor
SuperfellSuperfell
In professional edition, the layout controls access to fields via the API, the field is not on the layout, its not accessible via the API. For Enterprise edition, API visibility is controlled by FLS (Field Level Security).