Calculate Lost In Transit Status
This action calculates the number of days since the last event date and determines whether a package is lost in transit. The package is considered "lost" if the number of days since the last event exceeds or is equal to the specified Lost Threshold.
Inputs
| Name | Type | Description |
|---|---|---|
| Last Event Date | string | The date of the last known tracking event (format: YYYY-MM-DD). |
| Lost Threshold | number | The number of days after which a package is considered lost if no updates have occurred. |
| Count Business Days? | boolean | If true, only business days (MonβFri) are counted when calculating days since the last event. |
Outputs
| Name | Type | Description |
|---|---|---|
| Days Since Last Event Date | string | The total number of days (calendar or business) since the last tracking event occurred. |
| Lost In Transit? | boolean | Returns true if the days since the last event date is greater than or equal to the lost threshold. |
Updated 7 months ago
