Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
Hello @jonaguada , we do have documentation on this.
https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create...
Select Offset as the Pagination Type.
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.
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
Hello @jonaguada , we do have documentation on this.
https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create...
Select Offset as the Pagination Type.
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.
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