Skip to main content
Version: v1.0.0(int)

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

  1. Check name uniqueness. Case-insensitive, scoped to this org.

  2. Compute sortOrder under an advisory lock. New locations are placed at the end of the order if sortOrder is unspecified.

  3. Insert the location. Call Locations.create.

Returns

The new location.

Business rules

  • Names are unique per org.

Errors

  • ValidationError. Duplicate name.