Postman collection
Items Read

pixiReadItems

Returns Artikel master data for a single item, a key range or items created/updated in a date window, ordered by ItemKey.

Reads Artikel records from items, enriched with the estimated delivery export value, the supplier name and the configuration type text. All modes return the same columns.

First, if RowCount is non-zero, the number of returned rows is limited to that value. A missing ItemKey is treated as 0.

The first matching mode is used:

  1. Created or updated (CreateAndUpdateDateFrom and/or CreateAndUpdateDateTo set): items with ItemKey > ItemKey where CreateDate or UpdateDate is >= the from value, and CreateDate or UpdateDate is < the to value. Sorted by ItemKey ascending.
  2. Created (CreateDateFrom and/or CreateDateTo set): items with ItemKey > ItemKey and CreateDate in [from, to). Sorted by ItemKey.
  3. Updated (UpdateDateFrom and/or UpdateDateTo set): items with ItemKey > ItemKey and UpdateDate in [from, to). Sorted by ItemKey.
  4. Key range (RowCount is not NULL): all items with ItemKey > ItemKey, sorted by ItemKey.
  5. Single item (otherwise): the item whose ItemKey equals the parameter.

In modes 1–4, ItemKey is an exclusive lower bound. This allows keyset paging: pass the last ItemKey of the previous page together with RowCount.

The date checks only apply the bounds that are given. The to values are exclusive.

Notes

  • All tables are read WITH (NOLOCK). Results can contain uncommitted or inconsistent data.
  • Calling without any parameter falls into mode 5 with ItemKey = 0. This normally returns an empty result. The final ELSE branch of the code, which returns an empty result set, is never reached.
  • RowCount = 0 selects mode 4 (no date filter) without a row limit. It returns all items with ItemKey > ItemKey, which can be very large.
  • RowCount is applied via SET ROWCOUNT, so it also limits mode 5. That mode returns at most one row anyway.
  • In the combined mode, the from and to bounds are checked independently against CreateDate or UpdateDate. For example, an item created before the from date but updated after it matches the from condition.
  • Date parameters of different modes are not combined. If combined dates are set, the separate create/update dates are ignored, and create dates take precedence over update dates.
  • If several rows exist in Item_EstimatedDelivery for one item, the item is returned multiple times.

Tables used

items · Read Item_EstimatedDelivery · Read Suppliers · Read TontrArten · Read
SQL object:
dbo.pipiReadItems
Updated at 2026-10-30