You need to sign in to do that
Don't have an account?

OpportunityLineItem doesn't return any rows
I'm using Apigee to return the records from OpportunityLineItem object. But the Rest API doesn't return any records.
So the following URL just describes the table with empty list
services/data/v20.0/sobjects/OpportunityLineItem
The following URL returns all the records
services/data/v20.0/query/?q=select+description+from+OpportunityLineItem
The question is, why is that the first URL not returning any records?
Thanks!
Because the first URL is explicitly for object level describe information. There is a nested attribute for recent items, and if that's not populated that means there are no OpportunityLineItems in your MRU.