W092: Create location
Adds a new fulfillment location. Triggered from Settings, Fulfillment locations, "New location". The same row is reused as PO ship-to, WO work site, SO fulfillment location, and inventory bin.
Steps
-
Check name uniqueness. Case-insensitive, scoped to this org.
-
Compute
sortOrderunder an advisory lock. New locations are placed at the end of the order ifsortOrderis unspecified. -
Insert the location. Call
Locations.create.
Returns
The new location.
Business rules
- Names are unique per org.
Errors
ValidationError. Duplicate name.