Forum Discussion
LucasMdVelop
May 17, 2023Copper Contributor
Get an "Microsoft.SharePoint.SPQueryThrottledException" Exception, but try only to get one ListItem.
Hello, i started half year ago to work as an developer for an SharePoint adapter. Now i get a support ticket with an error, which i don't understand. In my developer Environment i do not have t...
ganeshsanap
May 17, 2023MVP
LucasMdVelop Are you using SharePoint online or SharePoint server? Can you provide complete code you are using?
If you want to filter list items based on item ID, you can use REST API endpoint like:
<siteUrl>/_api/web/lists/getbytitle('My List Name')/items(10)
Where 10 is the list item ID.
If you are trying to filter list items based on custom column in list, you can try adding indexing on that list column: Add an index to a list or library column
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.