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

W027: Update vendor

Edits a vendor's header fields. Triggered from Vendor Detail.

Steps​

  1. Load the vendor. Call Vendors.getById.

  2. Check name uniqueness if changed.

  3. Apply the patch. Call Vendors.update.

Returns​

The updated vendor.

Business rules​

  • Names stay unique per org.

Errors​

  • NotFoundError. The vendor was not found.
  • ValidationError. Name collision.