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

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



The following URL returns all the records





The question is, why is that the first URL not returning any records?



Best Answer chosen by Admin (Salesforce Developers) 

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.