Skip to main content

CommodityTag

Introduction​

CommodityTag is a junction entity that enables tagging of commodities with custom labels for categorization, filtering, and organization. This many-to-many relationship allows multiple tags to be assigned to a single commodity and the same tag to be used across multiple commodities.

Entity Structure​

Properties​

Property NameTypeRequiredDescription
CommodityTagIdintYesPrimary key
CommodityIdintYesForeign key to Commodity
TagIdintYesForeign key to Tag
CreatedDateTimeYesCreation timestamp
CreatedBystringYesUser who created the record
LastModifiedDateTimeYesLast modification timestamp
LastModifiedBystringYesUser who last modified

Relationships​

RelationshipTypeDescription
CommodityCommodityParent commodity
TagTagAssociated tag

YAML Configuration​

Tags are typically managed through Commodity methods:

# Create commodity with tags
- task: Commodity/Create@1
name: createCommodity
inputs:
organizationId: ${organizationId}
commodity:
description: "Electronics - Laptops"
pieces: 10
tags:
- "fragile"
- "high-value"
- "electronics"

Usage​

This junction entity is managed automatically when tags are assigned to commodities. Tags enable powerful filtering and reporting capabilities across commodity inventory.