Postman collection
Items Read

pixiReadBundleItems

Returns bundle item records (bundle components) from BundleItems, filtered by key, creation date and/or update date, with optional key-based paging.

Reads rows from the table BundleItems. Each row links an item (ItemRef) with a bundled item (BundleItemRef) and a quantity (Qty).

If RowCount is set to a value other than 0, the number of returned rows is limited to that value. If BundleItemKey is not passed, it is treated as 0.

The call checks the filter parameters in a fixed order. Only the first matching filter group is used:

  1. Combined date filter: CreateAndUpdateDateFrom or CreateAndUpdateDateTo is set. A row matches the lower bound if CreateDate or UpdateDate is on or after CreateAndUpdateDateFrom. It matches the upper bound if CreateDate or UpdateDate is before CreateAndUpdateDateTo. Only rows with BundleItemKey > BundleItemKey are returned.
  2. Creation date filter: CreateDateFrom or CreateDateTo is set. The filter is CreateDate >= from and CreateDate < to, together with BundleItemKey > BundleItemKey.
  3. Update date filter: UpdateDateFrom or UpdateDateTo is set. The filter is UpdateDate >= from and UpdateDate < to, together with BundleItemKey > BundleItemKey.
  4. Key range / paging: no date filter is set, but RowCount is passed. Returns all rows with BundleItemKey > BundleItemKey.
  5. Single record: neither a date filter nor RowCount is passed. Returns the row with exactly BundleItemKey = BundleItemKey.

The lower bounds include the given value, the upper bounds exclude it. Branches 1 to 4 are sorted by BundleItemKey ascending.

For paging, pass RowCount and set BundleItemKey to the last BundleItemKey of the previous page.

Notes

  • All reads use WITH (NOLOCK). Results may contain uncommitted data.
  • The row limit uses SET ROWCOUNT.
  • Passing RowCount = 0 still selects branch 4 (key range), because the value is not NULL. No row limit applies in that case, so all rows above the key are returned.
  • Calling without any parameters returns the row with BundleItemKey = 0. This normally yields an empty result.
  • The final "no data" branch in the code can never be reached, because BundleItemKey is never NULL at that point.
  • The exact meaning of ItemRef and BundleItemRef is not defined in the code. Presumably ItemRef is the bundle (parent) item and BundleItemRef the component item.
  • The column data types of ItemRef, BundleItemRef and Qty are not visible in the code.

Tables used

BundleItems · Read
SQL object:
dbo.pipiReadBundleItems
Updated at 2026-10-30