Only some roles may submit or cancel when a field holds a value
The customer asks: Only the receiving store receives a transfer; only a supervisor cancels it
- Verdict: Ready, with limits (4)
- Door: Save rules · area: Documents and print › Approvals
- Recipe: Save rules: one tax id per customer group, and a submit kept for a role
- Sample: none yet
- Checked: run on a sandbox 2026-10-21 · POS 2.0.0.656 (a purchase request's submit refused without the role, submitted with it)
What you build
A save rule of kind role for action: the submit, or the cancel, of a record type is taken only by a person holding one of the roles you name, when the record's fields hold the values you name. It holds from Desk, an import and the API. The recipe's manifest installs one.
Limits
- The conditions read the document's own fields, never its rows: a transfer's rows keep the store each names, so make the header name the store with a required when rule.
- The site's Administrator holds every role, so it can always submit and cancel.
- A submit or cancel the till's own work makes (a sale, the day close, a layaway's forfeit, the quote edit and cancel) is flagged, never refused.
- At most 3 conditions.
Tell the customer
Only the people you name may submit, or cancel, a document that meets your condition; anyone else is refused, in Desk and through an import or the API.
What next
- Tell the customer the 4 limits above, and write them into the proposal.
- Follow the recipe: Save rules: one tax id per customer group, and a submit kept for a role.
- Build and test it on your sandbox (request one if you have none; what is on it).
- Run the checks: your own tests, the kit's checks and the money kit's release gate (the release gate).
- Release through the customer's own release gate (The customer's release gate); an app other retailers install goes through the App library.
Related needs
- A cashier creating a customer whose mobile number is already on another one gets the existing customer, not a duplicate — Ready, with limits (4)
- No more than so many manager discount approvals per store per day — Ready, with limits (5)
- Refuse a batch whose remaining shelf life is below our minimum, unless a named role accepts it — Ready, with limits (4)
- A tax number on one customer only — Ready, with limits (5)
Start a project shortlist with this need · Put it in your blueprint · Every need