Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
jonaguada
Contributor III
Contributor III

REST connection settings for Service Now (pagination, paginate)

Our Service Now loader for the training management table is not returning all of the records.  We have extended with the timeout from 30 to 60 and gotten some more records. Anything greater than 60 returns less records.

We think that pagination will help but do not see any detailed documentation on this area.  Would anyone have any definitions and possibly examples for the pagination in REST for Service Now?

 

REST.jpg

Labels (1)
1 Solution

Accepted Solutions
Jay_Brown
Support
Support

Hello @jonaguada , we do have documentation on this.

https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create...

  1. Select Offset as the Pagination Type.

  2. Complete the Pagination fields as follows:

    Pagination Type: Offset

    'Start' parameter name: sysparm_offset;

    'Start' initial value: 0

    'Count' parameter name: sysparm_limit;

    'Count' initial value: 10000

    'Total records' path: X-Total-Count; 

     

    Look in header

    The names for 'Start' parameter name, 'Count' parameter name, and 'Total records' path come from ServiceNow. You must use those names so the connector knows where to find the values for each successive page request.

    The 'Start' initial value must be 0 if you intend to start at the beginning of the data set because ServiceNow uses 0 as the base value.

    Data indicator path is not required for ServiceNow because the total is contained in X-Total-Count.

  3. Skip the Query parameters and Query headers fields because no additional parameters or headers are required.


ServiceNow also has information about sysparm_offset and these examples as well, so if you get stuck, be sure to check their API documenation.

I hope that helps!
--Jay



To help users find verified answers, please don't forget to mark a correct resolution or answer to your problem or question as correct.

View solution in original post

1 Reply
Jay_Brown
Support
Support

Hello @jonaguada , we do have documentation on this.

https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create...

  1. Select Offset as the Pagination Type.

  2. Complete the Pagination fields as follows:

    Pagination Type: Offset

    'Start' parameter name: sysparm_offset;

    'Start' initial value: 0

    'Count' parameter name: sysparm_limit;

    'Count' initial value: 10000

    'Total records' path: X-Total-Count; 

     

    Look in header

    The names for 'Start' parameter name, 'Count' parameter name, and 'Total records' path come from ServiceNow. You must use those names so the connector knows where to find the values for each successive page request.

    The 'Start' initial value must be 0 if you intend to start at the beginning of the data set because ServiceNow uses 0 as the base value.

    Data indicator path is not required for ServiceNow because the total is contained in X-Total-Count.

  3. Skip the Query parameters and Query headers fields because no additional parameters or headers are required.


ServiceNow also has information about sysparm_offset and these examples as well, so if you get stuck, be sure to check their API documenation.

I hope that helps!
--Jay



To help users find verified answers, please don't forget to mark a correct resolution or answer to your problem or question as correct.