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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Paginating through Hub...
Power Automate
Unanswered

Paginating through HubSpot Contacts

(0) ShareShare
ReportReport
Posted on by 16

So I've got a flow built to get contacts from a list in HubSpot CRM using their APIs and the HTTP action. However, I am struggling with being able to paginate through the contacts to return all contacts. Currently HubSpot only allows a max of 100 contacts per call. You can use the "has-more" value and the "vid-offset" value to paginate through the list of contacts to get more than 100 but I am having trouble doing this in my flow. I have been able to successfully do it in PowerBI using the advanced editor, just no luck in Flow. Any help would be greatly appreciated. Attached is a screenshot of my current flow. MyFlow.PNG

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @snamuth,

     

    It seems that you are trying to enable Pagination for the HTTP action. Pagination enables you to handle more records than are returned in a single call from a service. For example, some services only return back 50 items at a time. However, in the flow, you may want to get all of the items in the list. By turning on pagination, the flow engine will continue to call the service until it has all of the items - or - hits the limit that you explicitly define in the flow.

    Please click the Settings, then turn on the Pagination. You could also give a limit on max number of items to retrieve.

    Please check the doc for more details:

    https://flow.microsoft.com/en-us/blog/four-connector-action-settings/

      

    Best regards,

    Mabel Mao

  • snamuth Profile Picture
    16 on at

    Thanks Mabel. I am trying to enable Pagination, but the way HubSpot works is that it gives you a values in the reponse to determine if you need to paginate and get more contacts. The only way to paginate is to take the vidOffset value that it returns each time and pass it back to the API to get the next n number of records. Just enabling pagination in settings isn't letting me pass the vidOffset value back to the API. This is the part I am struggling with. 

  • snamuth Profile Picture
    16 on at

    Ok, So I've figured out how to paginate through the HubSpot API using a variable that gets set with the first API response. However, now, the only way I can get it to combine all of the responses is by creating a csv table for each and combining them afterwards. Is there a way to combine all of the json responses from the API into one csv table? Attached is what my current flow looks like. I was able to paginate using a "Do until has-more is equal to false". Any help is definitely appreciated.

     

    ThanksFlow1.pngflow2.pngflow3.png

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard