cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ajhstn
Helper I
Helper I

API Pagination, & getting the "next" url

Hello, i am hitting my pagination supported API.  I can retrieve the Link object from the response Header, all good.  Now i need to get the next URL out of the Link object.  The Link object looks like this.

 

"Link": "<https://domain.com/api/v1/logs?sortOrder=ASCENDING>; rel=\"self\",<https://domain.com/api/v1/logs?sortOrder=ASCENDING&after=129872345678972>; rel=\"next\""

 

Here's my flow, so far..

 

Screen Shot 2019-10-05 at 14.07.04.png

 

If i am doing this wrong, let me know.

4 REPLIES 4
v-litu-msft
Community Support
Community Support

Hi @ajhstn,

 

Could you please share the screenshot of the output for the Link object?

If you want to get the value of an object, you can use the syntax that object?['columnName']. If it is an array, you can put the array into a loop - Apply to each, use the item() to get the current item and the column name, for example: item()?['columnName'].

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.

micshpar
Regular Visitor

@ajhstn  Did you manage to solve it?

Can you please share the solution?

Thanks

Aegi
New Member

Yes, please share the solution.
I have a similar problem.
How can I access the next URL if my HTTP headers return a link information.

 

HTTP Header Link: 

 
michaelshparber
Helper III
Helper III

@ajhstn @v-litu-msft 

Inside Do...until... - how do I append json body results from all the loops?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,039)