W049: Create customer type
Adds a new customer type (for example, Purchaser, Location). Triggered from Settings, Customer types.
Steps
-
Check name uniqueness. Case-insensitive, scoped to this org.
-
Insert the type. Call
Customers.createCustomerType.
Returns
The new customer type row.
Business rules
- Names are unique per org.
Errors
ValidationError. Duplicate name.