OrderTag
Introduction
OrderTag is a junction entity that enables tagging of orders with custom labels for categorization, filtering, and organization. This many-to-many relationship allows multiple tags to be assigned to a single order and the same tag to be used across multiple orders.
Entity Structure
Properties
| Property Name | Type | Required | Description |
|---|---|---|---|
| OrderTagId | int | Yes | Primary key |
| OrderId | int | Yes | Foreign key to Order |
| TagId | int | Yes | Foreign key to Tag |
| Created | DateTime | Yes | Creation timestamp |
| CreatedBy | string | Yes | User who created the record |
| LastModified | DateTime | Yes | Last modification timestamp |
| LastModifiedBy | string | Yes | User who last modified |
Relationships
| Relationship | Type | Description |
|---|---|---|
| Order | Order | Parent order |
| Tag | Tag | Associated tag |
YAML Configuration
Tags are typically managed through Order methods:
# Create order with tags
- task: Order/Create@1
name: createOrder
inputs:
organizationId: ${organizationId}
order:
orderNumber: "ORD-2025-001"
orderType: OceanShipmentOrder
tags:
- "urgent"
- "fragile"
- "high-value"
Usage
This junction entity is managed automatically when tags are assigned to orders. Tags enable:
- Quick filtering of orders by category
- Visual organization in dashboards
- Workflow triggers based on tag presence
- Reporting and analytics grouping
Related Topics
- Order Entity - Parent order entity
- Tag Entity - Tag definitions
- CommodityTag Entity - Similar junction pattern for commodities