I tried a request at a url of the following form
.../_api/web/Lists/getByTitle('docLib')/items?$select=id,GUID&$top=1&$filter=GUID eq '2779cf8051-381f-4834-93dc-ece6345dde33'
and i get "Microsoft.SharePoint.SPQueryThrottledException : The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator."
I find this very peculiar because a request at
does not give an error and returns the list of all items (I think) in "docLib".
Any other way to get the id of an item by its GUID ?
The error described appears only when searching in a list with more than a few thousand(i think 5000) items. I need something to work regardless of the number of items in the list.