Hi,
I am using rest query with some filter and want to check if there is any data on the list for respective filter OrigDocID but its giving me below error. when I increased the threshold limit more then list item in the list , this solution working but I dont want to increase this.
Site_url/_api/web/lists/getbytitle('listname')/items?top=1&$filter=OrigDocID%20eq%20%27EAC033A1133624FA862577910025A293%27&$select=OrigDocID
Error
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>
-2147024860, Microsoft.SharePoint.SPQueryThrottledException
</m:code>
<m:message xml:lang="en-US">
The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.
</m:message>
</m:error>
MS_21212