Skip to main content

CommodityEvent

Introduction​

CommodityEvent is a bridge entity that associates tracking events with individual commodities. While tracking events are typically linked at the order level, CommodityEvent enables granular tracking at the commodity (freight item) level, which is essential for scenarios where individual items in a shipment have different tracking histories.

Entity Structure​

Properties​

Property NameTypeRequiredDescription
CommodityEventIdintYesPrimary key
CommodityIdintYesForeign key to Commodity
TrackingEventIdintYesForeign key to TrackingEvent
CreatedDateTimeYesCreation timestamp
CreatedBystringYesUser who created the record
LastModifiedDateTimeYesLast modification timestamp
LastModifiedBystringYesUser who last modified

Relationships​

RelationshipTypeDescription
CommodityCommodityThe commodity this event relates to
TrackingEventTrackingEventThe associated tracking event

Usage​

CommodityEvent is used extensively in Flow workflows to evaluate commodity-level conditions:

aggregations:
- name: "hasCommodityEvent"
parameter: "eventCode"
expression: "any([Commodity.CommodityEvents], [each.TrackingEvent.EventDefinition.EventCode] = [eventCode])"