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
KalyanLKalyanL 

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!

Best Answer chosen by Admin (Salesforce Developers) 
dkadordkador

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.