I am trying to retrieve workitems from TFS using REST API. https://servername/tfs/collectionname/_apis/wit/workitems?ids='xxxx,yyyy,zzzz,....n' (where n count is 420). Each id is a 4 digit number. I could not retrieve more than 409 workitems. If the query exceed more than 409 ids, I receive "404 - File or directory not found" error. Please help me to find solution for this.
Asked
Active
Viewed 218 times
1 Answers
1
I can reproduce this issue,it has restriction for the length of the strings when using the REST API.
In this case, we can not get all the work items in one time, we can get the work items separately, just call the API twice.

Andy Li-MSFT
- 28,712
- 2
- 33
- 55
-
Thanks Andy for re-confirming it. – Adi Jun 06 '17 at 09:32