Postman collection
Statistics Read

pixiGetApplicationUsageStatistic

Returns, per day, the pixi* client applications that were open at the snapshot with the most connected users, or only the list of applications used.

Evaluates the login snapshots stored in UsersLoggedIn to show which pixi* clients were in use when the licence usage peaked on each day.

  1. For every snapshot (Tag), the logged-in sessions are counted. Sessions whose UserName matches a ComputerName in MasterUsers and sessions whose UserNameUsingPixi is master are excluded.
  2. For each calendar day (date part of Tag), the snapshot with the highest session count is selected. On a tie, the latest snapshot of that day wins.
  3. For the selected snapshot of each day, the sessions are counted per application (AppName), using the same exclusions.
  4. The technical application names are translated into readable names via a fixed, built-in list (e.g. BinClient_A.exe → Lager, ShippingClient_A.exe → Versand, several web components → Web pixi*). Applications that are not in this list are dropped from the result.

Output depends on ShowOnlyApplicationsused:

  • 0 (default): one row per day and application with the session count, sorted by Tag_Date and ApplicationFormatted.
  • 1: only the distinct list of applications (technical and readable name) that occurred in any daily peak snapshot, without a defined sort order.

There is no date filter; all snapshots in UsersLoggedIn are evaluated.

Notes

  • All reads on UsersLoggedIn and MasterUsers use NOLOCK, so results may include uncommitted data.
  • Sessions with UserNameUsingPixi = NULL are also excluded, because the comparison with master is not true for NULL.
  • Several technical names map to the same readable name (e.g. PixiPOS.exe and PPOS2.exe → POS; four web components → Web pixi*). In mode 0 this can produce several rows with the same ApplicationFormatted on one day; group by ApplicationFormatted on the client if a combined figure is needed.
  • Whether AppName matches the translation list case-insensitively depends on the database collation.
  • Since the whole history of UsersLoggedIn is processed, the call can be slow on large tables.
  • Temporary tables are cleaned up via util.TempTableDrop (definition not attached).

Parameters

Parameter Type Default Description
ShowOnlyApplicationsused
bit
boolean
0

Controls the output: 0 returns usage counts per day and application, 1 returns only the distinct list of applications used.

Allowed values

  • 0 – Per-day statistics with session count per application.
  • 1 – Only the distinct applications that appeared in the daily peak snapshots.

Example: 0

Response

Result set 1 · If ShowOnlyApplicationsused = 0 (default)

One row per day and application at the daily peak snapshot, sorted by Tag_Date and ApplicationFormatted.

Column Type Description
Tag_Date
Nullable
datetime
dateTime

Day of the peak snapshot (time part is always 00:00).

Application
Nullable
string

Technical application name from UsersLoggedIn.AppName.

ApplicationFormatted varchar(22)
string

Readable application name from the built-in translation list.

Total int

Number of sessions of this application in the day's peak snapshot.

Result set 2 · If ShowOnlyApplicationsused = 1

Distinct list of applications that occurred in any daily peak snapshot; no defined sort order.

Column Type Description
Application
Nullable
string

Technical application name from UsersLoggedIn.AppName.

ApplicationFormatted varchar(22)
string

Readable application name from the built-in translation list.

Examples

POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
Authorization: Basic BASE64(USERNAME:PASSWORD)

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://apigateway.descartes.com/tms/pixi/">
  <SOAP-ENV:Body>
    <ns1:pixiGetApplicationUsageStatistic>
      <!-- <ShowOnlyApplicationsused>0</ShowOnlyApplicationsused> -->
    </ns1:pixiGetApplicationUsageStatistic>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Tables used

UsersLoggedIn · Read MasterUsers · Read
SQL object:
dbo.pipiGetApplicationUsageStatistic
Procedure last changed on 2026-10-05
Documentation written by claude-opus-5-5 on 2026-10-30