# Paging steps on webservices connector for IDN API

**URL:** <https://developer.sailpoint.com/discuss/t/paging-steps-on-webservices-connector-for-idn-api/21657>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, apis, identity-security-cloud\
**Created:** [November 28, 2023, 6:39pm UTC](https://developer.sailpoint.com/discuss/t/paging-steps-on-webservices-connector-for-idn-api/21657 "2023-11-28T18:39:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rm111](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@rm111](https://developer.sailpoint.com/discuss/u/rm111)\
**Post date:** [November 28, 2023, 6:39pm UTC](https://developer.sailpoint.com/discuss/t/paging-steps-on-webservices-connector-for-idn-api/21657/1 "2023-11-28T18:39:33Z")

</div>

Hello Experts,

I am using IDN V3 get accounts API call on webservices connector source.

```auto
https://<tenant>.api.identitynow.com//v3/accounts?limit=250&offset=0&filters=sourceId eq "12345" 

```

and for paging I am using the below steps but even after setting that paging steps, I am only getting 250 accounts on aggregation. Is it the paging steps not, correct?

```auto
$limit$ = 250
$sourceId$ = 12345
TERMINATE_IF $RECORDS_COUNT$ == null
$nextOffset$ = $offset$ + $limit$
$endpoint.fullUrl$ = $application.baseUrl$ + "/v3/accounts?limit=250&offset=" + $nextOffset$ + "&filters=sourceId eq" + $sourceId$

```

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/c/cbb1fb4eaea97d62a4dadb73017df994baef676f.png)  
Please correct if this wrong and suggest me the right way.

Thank you!

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [November 28, 2023, 6:51pm UTC](https://developer.sailpoint.com/discuss/t/paging-steps-on-webservices-connector-for-idn-api/21657/2 "2023-11-28T18:51:14Z")

</div>

> [@rm111](#):
>
> `TERMINATE_IF $RECORDS_COUNT$ == null`

Try to change it to  
`TERMINATE_IF $RECORDS_COUNT$ < $limit$`

---

<div class="post-metadata">

**Author:** ![rm111](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@rm111](https://developer.sailpoint.com/discuss/u/rm111)\
**Post date:** [November 28, 2023, 6:57pm UTC](https://developer.sailpoint.com/discuss/t/paging-steps-on-webservices-connector-for-idn-api/21657/3 "2023-11-28T18:57:40Z")

</div>

Hello @kjakubiak  
Thank you for your response.  
still facing same issue after updating your suggestion on the paging steps

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [January 27, 2024, 6:57pm UTC](https://developer.sailpoint.com/discuss/t/paging-steps-on-webservices-connector-for-idn-api/21657/4 "2024-01-27T18:57:47Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
