web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : Vl025xPvCEeKiw/tPJwPMH
Power Automate - Using Connectors
Unanswered

Unable to fetch more than 1000 records using GetQueryResults from AzureDevops

Like (0) ShareShare
ReportReport
Posted on 22 May 2020 11:16:16 by Microsoft Employee

Hello Team,

 

I am trying to fetch all the items from the shared queries using GetQueryResults from AzureDevops. However, it limits to only 1000 records.
From the article https://docs.microsoft.com/en-us/connectors/visualstudioteamservices/#get-query-results it seems that we can fetch till 20000 records. Can someone please assist on this.

I have the same question (0)
  • esuna114 Profile Picture
    12 on 04 Jul 2020 at 14:38:48
    Re: Unable to fetch more than 1000 records using GetQueryResults from AzureDevops

    Hello, I have exactly the same problem. Is there any solution for this pagination error? Thanks

  • M_Sri_Prakash Profile Picture
    Microsoft Employee on 25 May 2020 at 04:40:10
    Re: Unable to fetch more than 1000 records using GetQueryResults from AzureDevops

    I have tried this method earlier and however tried again but ended up with same error as below:

     

    The response is not a valid paginated response. The specified nextLink 'https://firstrelease-001.azure-apim.net/apim/visualstudioteamservices/shared-visualstudiot-ebaa1f8e-c4b9-462c-a8ec-45be95b3bf00/v2/MSUOrg/queryResults/07a52509-06d5-4a9e-91b2-4445585d46a5?account=msiorg&workItemsCount=20000&skip=1000' is not a well formed URI.

     

  • M_Sri_Prakash Profile Picture
    Microsoft Employee on 25 May 2020 at 04:33:07
    Re: Unable to fetch more than 1000 records using GetQueryResults from AzureDevops

    It just shows as "GetQueryResults" and I have entered the value as "20000" in Number of work items to return.

    GetQueryResults.png

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    GetQueryResults1.png

  • v-litu-msft Profile Picture
    on 25 May 2020 at 01:23:38
    Re: Unable to fetch more than 1000 records using GetQueryResults from AzureDevops

    Hi @M_Sri_Prakash,

     

    Please have a try that click the Setting of the Get query results action, turn on Pagination to set the Threshold to 20000:

    Annotation 2020-05-25 092019.jpg

     

    Annotation 2020-05-25 092045.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anupam.khasia Profile Picture
    366 on 24 May 2020 at 08:52:05
    Re: Unable to fetch more than 1000 records using GetQueryResults from AzureDevops

    Hi M_SRI_PRAKASH,

     

    Can you confirm that you are using GetQueryResultsV2  endpoint and passing workItemsCount parameter to 20000 ? 

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 783 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 515 Moderator

#3
trice602 Profile Picture

trice602 299 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Loading complete