Pagination in REST call

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Pagination in REST call

Post by robleer »

Hi, I've made an REST connection, but that system uses pagination to deliver data. Thats a normal way of working.

Can I set the pagination loop somewhere in Aware so I get all the data I want instead of the first page only?
Using 8.7 Professional 3025 on MySQL/Windows
idpSteve
Posts: 201
Joined: Thu Jul 27, 2017 6:13 am
Location: Johannesburg, South Africa
Contact:

Re: Pagination in REST call

Post by idpSteve »

I've done something like this while syncing an outlook calendar.

Here is a link to how it works with Microsoft graph API:

https://docs.microsoft.com/en-us/graph/paging

What happens is if you select to receive 100 records at a time, and there are more than 100 records, then a 'page 2' (@odata:nextLink) property is returned. You can, in Aware, check if this property is defined in the return, and pass it to the API to receive page 2, and so on.

If you're still stuck with this let me know and I'll find exactly how I did this.

It also might help to know what you're integrating so we can look at the documentation because providers do things a bit differently.
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Pagination in REST call

Post by robleer »

Hi Steve,

Ok, I'd like to see that, because AwareIM does not support loops. How did you do that?

I'm connection to our own LearnLinq system: see: https://demo.learnlinq.com/WebAPI/docum ... /Users_Get

You see that we use a size and a page param. We need to loop through the pages and I cannot see how this should be done with Aware. Tia, Rob
Using 8.7 Professional 3025 on MySQL/Windows
idpSteve
Posts: 201
Joined: Thu Jul 27, 2017 6:13 am
Location: Johannesburg, South Africa
Contact:

Re: Pagination in REST call

Post by idpSteve »

Do you perhaps have Skype? It will be easier to assist there.
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Pagination in REST call

Post by robleer »

No Skype, we can use Join.me ?

If you like I send you the temp link
Using 8.7 Professional 3025 on MySQL/Windows
robleer
Posts: 285
Joined: Wed Jul 14, 2010 7:01 pm

Re: Pagination in REST call

Post by robleer »

Hi Steve,

I've send you a PM with details a while ago. Did you have time to take a look at it?

Tia,

Rob
Using 8.7 Professional 3025 on MySQL/Windows
idpSteve
Posts: 201
Joined: Thu Jul 27, 2017 6:13 am
Location: Johannesburg, South Africa
Contact:

Re: Pagination in REST call

Post by idpSteve »

Hi Rob.

I'm sending you a mail now, apologies!
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Pagination in REST call

Post by aware_support »

Aware IM supports LIMIT keyword as part of the FIND action. This can be used to fetch a particular page. Checkout the Rule Language Guide for details
Aware IM Support Team
Post Reply