W156: Create order channel
Adds a new order channel (for example, Direct, Distributor) with a display color. Triggered from Settings, Order channels.
Steps
-
Check name uniqueness. Case-insensitive, scoped to this org.
-
Insert the channel. Call
SalesOrders.createChannel.
Returns
The new channel row.
Business rules
- Names are unique per org.
Errors
ValidationError. Duplicate name.