Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.62 KB

ms.total.count.field.md

File metadata and controls

38 lines (22 loc) · 1.62 KB

ms.total.count.field

Tags: pagination, source

Type: string

Format: A JsonPath separated by ".", like "level1.level2"

Default value: blank

Related

Total Count field directs DIL how to retrieve the expected total row counts. This is important when there are large volume of data and pagination is used to retrieve data page by page. In cases of pagination, the expected total row count is one way to indicate the end of pagination when the actually retrieved total number of rows matches or surpasses the expected total rows.

Total count field is normally the element name representing the expected total count. It is, therefore, mostly in simple string format.

If the response is in Json format, the total count field can be in a nested element, and the configuration will be a JsonPath to indicate how to find the nested element.

Example 1: if the response from the source is like this: {..."total_records" : 48201...}, then the configuration can be ms.total.count.field = total_records.

Example 2: if the response from the source is like this {..."records": {..."totalRecords": 9999...}...}, then the configuration can be ms.total.count.field = records.totalRecords.

back to summary