--- title: "Add tracking status" slug: "base-ts-add-tracking-status-actor-config" updated: 2026-04-02T08:54:06Z published: 2026-04-02T08:54:06Z canonical: "docs.lobstersoftware.com/base-ts-add-tracking-status-actor-config" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Add tracking status > [!NOTE] > Event action – Abstract > > **Purpose:** Creates a new tracking status entry to be added to the [Tracking state history](/v1/docs/en/orchestration-ts-history) of a *reference object* (business transaction object or line item). The new entry is stored in a variable so that it can be edited by subsequent event actions. > > > [!TIP] > > Tooltip > > > > - **Usage:** The event action must be performed in the context of the *reference objec*t to which a tracking status entry is added to its tracking status history. The tracking status entry being added must be assigned a tracking status code either via the **Tracking status** parameter or by assignment via event action. Other characteristics of the entry can be optionally assigned. If 'Add' is not allowed, the transaction fails with an error message. > > - **Parameter:** *(all optional)* > > - **Tracking status**: Selection for the [Tracking state](/v1/docs/en/tracking-state-1) (code) for the new tracking status entry to be created. > > - **Name of the TS variable name**: Variable name for the new tracking status entry. > > - **Customize TS with **: Block of event actions that can be used, for example, to customize the new tracking status entry. > > - **Output:** > > - New tracking status entry in the history of the reference object (if 'Add' is allowed). > > - Error/rollback of the transaction (if 'Add' not allowed). > > - **NOTE:** Provided that adding the tracking status entry is allowed AND this requires changing at least one tracking status attribute of the *reference object*, the *reference object* (or in case of a line item, the parent object) is saved when the transaction is completed. ![images/download/attachments/189442603/image-2024-12-17_9-21-26-version-1-modificationdate-1734423685668-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-17_9-21-26-version-1-modificationdate-1734423685668-api-v2.png) The [Add tracking status](/v1/docs/en/base-ts-add-tracking-status-actor-config) event action creates a new tracking status entry (`baseTS:TrackingStatusEntry`) to be added to the [Tracking state history](/v1/docs/en/orchestration-ts-history) of *reference objects*. Suitable *reference objects* for adding [Tracking state](/v1/docs/en/tracking-state-1) entries are business transaction objects and sometimes their positions according to the following overview: | Business transaction object | Tracking status at header level | Tracking status at item level | | --- | --- | --- | | [Common business object](/v1/docs/en/orchestration-common-bto) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(12).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(12).svg) | | [Orders](/v1/docs/en/ord-order) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(12).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(12).svg) | | [Shipments](/v1/docs/en/shp-shipment) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(12).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(12).svg) | | [Manifests](/v1/docs/en/mfst-manifest) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/check.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/check(12).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(10).svg) | | Time slot book entry (see [Time slot management](/v1/docs/en/orchestration-rules-tsmt)) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(10).svg) | ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/error.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/error(10).svg) | [Add company address contact](/v1/docs/en/base-add-company-address-contact-actor-configuration) - If the *reference object* is an item of a business transaction object, the restrictions in the section 'Adding tracking status to line items of a business transaction object' (see below) must be observed. - Provided that the addition of the tracking status entry can be completed successfully AND this requires the change of at least one tracking status attribute of the *reference object* (see step 3 in the following section or explanations for [Tracking state transformations](/v1/docs/en/orchestration-ts-transformations)), the *reference object* is saved when the transaction is completed. This also takes into account any changes made to the related object data until the transaction is completed – regardless of whether these take place before or after the call to [Add tracking status](/v1/docs/en/base-ts-add-tracking-status-actor-config). **NOTE:** If the *reference object* is a line item of a transaction object, updating at least one tracking status attribute of the line item also marks the entire transaction object to be saved at the end of the transaction. If a corresponding event handling is triggered while the business transaction object is open in a input form within the same session, this may cause unsaved changes to be lost. - For the evaluation of [Association criteria](/v1/docs/en/core-association-criteria) for [Tracking state workflows](/v1/docs/en/base-ts-tracking-status-transformation), the potentially modified volatile data status of the *reference object* at the time of the call of the [Add tracking status](/v1/docs/en/base-ts-add-tracking-status-actor-config) event action is the deciding factor. Unsaved changes to the *reference object* made prior to [Add tracking status](/v1/docs/en/base-ts-add-tracking-status-actor-config) can affect the 'mapping' of [Tracking state workflows](/v1/docs/en/base-ts-tracking-status-transformation). This can be critical to whether the desired tracking status entry can be added and the transaction completed. ## Procedures for adding a tracking status entry | Step 1: Create new tracking status entry and initialize if applicable | | --- | | Created a new instance for a tracking status entry (`baseTS:TrackingStatusEntry`). - If [Tracking state](/v1/docs/en/tracking-state-1) is selected for the **Tracking status** configuration parameter, it will be assigned to the 'Tracking status.code' field (`trackingStatus.code`). **IMPORTANT:** If the selection of a [Tracking state](/v1/docs/en/tracking-state-1) is omitted in the configuration, then it must be assigned via event actions in the following section **Customize TS with **, otherwise an error with a rollback occurs ('No tracking status available'). **NOTE:** The same error occurs if the added tracking status does not exist in the relevant system, e.g. because the relevant master data was deleted after the event action was configured. | | **Step 2: Customize tracking status entry (optional)** | | Below the configuration parameters, a block of event actions is provided, which is typically used to adjust the newly created tracking status entry – e.g. taking into account data from the *reference object*. - For these event actions, the *reference object* to which the tracking status is to be added remains unchanged, and not the new tracking status entry, for example. This is also reflected in the label (**Customize TS with **), where the name for the '' of the *reference* *object* appears in the configuration*.* - Assignments for tracking status entry fields are typically made by [Set value](/v1/docs/en/core-set-value-actor) event actions. The access to the new tracking status entry object is provided by a variable whose name must be defined in the parameter **Name of TS variable**. By default, the variable name `trackingStatus` is preset there. | | **Step 3: Add tracking status, if permitted** | | Finally, the new tracking status entry should be created and therefore added to the *reference object's* tracking status history. If a *tracking* *status* *workflow (*[Tracking state workflows](/v1/docs/en/base-ts-tracking-status-transformation)*)* is applicable for the data context, its configuration determines under which conditions the added tracking status is considered valid or not against the background of the existing tracking status history for the *reference object* (see [Tracking state workflows](/v1/docs/en/base-ts-tracking-status-transformation)). The test is performed according to the following scheme: 1. The added tracking status entry is chronologically ranked in the existing history based on the date/time value in the 'External input time' (`externalInput`) field. Entries without any specification for the 'External input time' beforehand are ranked instead via the 'Created date' (`created`). Unless an 'External input time' was explicitly defined in step 2 for the added tracking status, the current system time applies to it. 2. Before the added tracking status entry is saved and thus accepted as an element of the [Tracking state history](/v1/docs/en/orchestration-ts-history), the [Tracking state history](/v1/docs/en/orchestration-ts-history) modified by the additional entry is checked for the validity of the [Tracking state transformations](/v1/docs/en/orchestration-ts-transformations) against the background of the [Tracking state transformation matrices](/v1/docs/en/base-ts-tracking-status-transformation-matrix) for the applicable tracking status workflow. Each of these matrices refers to a specific [Tracking state type](/v1/docs/en/base-ts-tracking-status-type). At the same time, the *reference* *object* provides a specific 'current tracking status' (or tracking status attribute) for each [Tracking state type](/v1/docs/en/base-ts-tracking-status-type), which may be changed by adding a tracking status. Depending on the 'Calculation mode' for the respective matrix, the check of the [Tracking state transformations](/v1/docs/en/orchestration-ts-transformations) starts with the beginning of the tracking status history or only from the entry currently registered as 'current' for the respective [Tracking state type](/v1/docs/en/base-ts-tracking-status-type). The added entry is considered valid only if it can be achieved against the background of at least one of the [Tracking state transformation matrices](/v1/docs/en/base-ts-tracking-status-transformation-matrix) via valid [Tracking state transformations](/v1/docs/en/orchestration-ts-transformations). **NOTE:** This does not necessarily mean that the added entry becomes the current entry for the respective [Tracking state type](/v1/docs/en/base-ts-tracking-status-type), especially when backdated entries are added to an existing history. | ## Adding tracking status entries to line items of a business transaction object **NOTE:** Tracking status entries are not supported for line items of [Manifests](/v1/docs/en/mfst-manifest) (see [Working with tracking states](/v1/docs/en/orchestration-ts-concept)) since these are by definition [Shipments](/v1/docs/en/shp-shipment) that themselves have tracking status attributes. When the 'Add tracking status' action is used to add a tracking status to a line item of a business object, the internal ID of the business object must be available in the respective property of the line item: | Business object type | Property name | | --- | --- | | Common business object | commonId | | Order | orderId | | Shipment | shipmentId | Typically, these fields are not populated with data in the client. Instead, they are initialized automatically with the ID of the business object before event actions are executed. This automatism provides the required input for the event action, with the exception of the following special cases: 1. The line item to which the new tracking status entry should be added, was added to the business object in the course of the ongoing event handling transaction. Since the line item did not exist when the transaction started, it did not get initialized. This case can be covered by a [Set value](/v1/docs/en/core-set-value-actor) event action to initialize the respective property (see table above) with the ID before calling 'Add tracking status'. 2. The business transaction object has not yet been saved or the current transaction was triggered by the 'Create' event for the business transaction object (see [Common action event](/v1/docs/en/core-common-action-event)). In this case, there is not yet an ID for the transaction object that could be entered. However, no tracking status can be added interactively to a transaction object that has not yet been saved. ## Configuration ![images/download/attachments/189442603/image-2024-12-17_9-21-36-version-1-modificationdate-1734423695558-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-17_9-21-36-version-1-modificationdate-1734423695558-api-v2.png) The [Tracking state](/v1/docs/en/tracking-state-1) code for the added tracking status entry can *optionally* be selected in the **Tracking** **status** parameter. All [Tracking state](/v1/docs/en/tracking-state-1) codes that have read access in the login context are available for selection. **NOTE:** If an existing event handling is edited in which there is no read access for the already configured [Tracking state](/v1/docs/en/tracking-state-1) code, the caption may not appear in the label. Nevertheless, the selection remains valid. However, it cannot be deselected and then reselected in the session in question. The **Name of TS variable name** parameter is *optional*, but must specify a variable name for the newly created tracking status entry if access to the tracking status entry is required for the event actions in the block **Customize TS with **. Therefore, by default, the variable name `trackingStatus` is preset. Using the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/add.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/add(31).svg) symbol, event actions can be added in the **Customize TS with ** section. These are executed after creating the new tracking status entry, but before attempting to add it to the [Tracking state history](/v1/docs/en/orchestration-ts-history) of the *reference object*. **NOTE:** The entity type of the *reference object* appears in the label above the block to indicate that this *reference object* also applies to the event actions inserted here. Both the data of the *reference* *object* and that of the new tracking status entry can still be adjusted in this block before checking whether the tracking status entry may be added and, if so, with what consequences. ## Example: Adding a tracking status to a shipment In the following example, a **Tracking status** 'GO!' is added to a shipment and the 'Comment' (`comment`) **Object** **property** of the new tracking status entry should be populated with the text from the 'text value' (`textValue`) of the **Text** **attribute** 'Route' of the shipment. ![images/download/attachments/189442603/image2019-5-10_14-51-10-version-1-modificationdate-1734421332877-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-5-10_14-51-10-version-1-modificationdate-1734421332877-api-v2.png)