Postman collection
Orderlines Read

pixiReadBundleOrderlines

Returns bundle order lines from `BundleOrderlines`, filtered by create and/or update date and paged by key.

Reads bundle order lines (the bundle header lines of orders) from the table BundleOrderlines, using keyset paging.

Selection of candidates. Only the first matching filter group is applied, in this priority:

  1. CreateAndUpdateDateFrom / CreateAndUpdateDateTo: lines whose CreateDate or UpdateDate lies in the range.
  2. CreateDateFrom / CreateDateTo: lines whose CreateDate lies in the range.
  3. UpdateDateFrom / UpdateDateTo: lines whose UpdateDate lies in the range.
  4. No date filter: all lines.

Within a date group, a missing From value defaults to two years before the current date, and a missing To value defaults to the current date and time. The ranges are inclusive (BETWEEN).

Paging. In every case only lines with BundleOrderlineKey > OrderlineKey are returned. OrderlineKey defaults to 0. At most RowCount lines are returned (default 1000), ordered by BundleOrderlineKey ascending. To read the next page, pass the highest OrderlineKey of the previous page.

The result is one result set with selected columns of BundleOrderlines, sorted by OrderlineKey ascending.

Notes

  • OrderlineKey is not an exact-match filter. Because a NULL value is replaced by 0 and RowCount by 1000 at the start, the code branch for reading a single key is never reached. To read exactly one line with key n, pass OrderlineKey = n-1 and RowCount = 1.
  • Passing RowCount as NULL is treated as 1000.
  • All reads use NOLOCK, so uncommitted data can be returned and rows may be missed or duplicated while data changes concurrently.
  • Date defaults use the server time (GETDATE()); without any From value, lines older than two years are not returned by the date filters.
  • Column data types are not visible in the code; they come from the table BundleOrderlines.

Tables used

BundleOrderlines · Read
SQL object:
dbo.pipiReadBundleOrderlines
Updated at 2026-10-30