Skip to content
MyAppBuilder
StableGuide

Approve a quote

Goal: a customer opens their quote, reads the details and clicks Approve or Reject . The quote's status changes and your team is notified.

Approve a quote

Goal: a customer opens their quote, reads the details and clicks Approve or Reject. The quote's status changes and your team is notified.

Data needed

  • A Quotes entity with Number, Description, Amount, Valid Until, a Status select field with the options Approved and Rejected (plus others such as Draft, Sent) and, for the customer portal, a Customer Email field.
  • The Quote Approval business component creates these fields when the entity does not exist yet.

Step 1 — the approval screen

  1. Create a dynamic page for one quote, for example route /quotes/:id (see Routes and parameters).
  2. Drop the Quote Approval component (Sales) on that page. For a customer portal use Quote Approval from the Customer portal group instead; it scopes the record to the signed-in customer's email.
  3. The component is a card with a Detail View bound to the quote from the page parameter and two buttons: - Reject → Update record (Quotes, the shown record) with Status = Rejected, then Show message "Marked as rejected". - Approve → Update record with Status = Approved, then Show message "Marked as approved".
  4. Select a button to change its label, or open its Actions tab to add more actions (for example Go to page → Thank you).

Step 2 — react to the approval

  1. Open Logic → Pipelines and create a pipeline on Quotes › Status if you have none.
  2. Click Add automation → When stage becomes… Approved. A workflow When quote becomes Approved opens with the trigger already set: A record is updated, Only when Status changes, Only if Status is "Approved".
  3. Edit the Notification step (Quote {{record.number}} approved) and add a Send email step to your sales address with the quote details.
  4. Keep the workflow On.

Resulting behaviour

  • Clicking Approve updates the record on the server with the customer's permissions. In the portal, a customer can only update quotes whose Customer Email equals their sign-in email (the component adds a Customer rule with read and update).
  • Because the Status field changed to Approved, the workflow runs once and your team is notified.
  • Clicking Approve twice does not run the workflow again: the field did not change the second time.
Example
Quotes › Status:  Sent → Approved
Workflow:         When quote becomes Approved · Notification · Send email
Run history:      succeeded · A record is updated · Record rec_01h…

Variations

  • Create a job from the approved quote: see Create a job after approval.
  • Record who approved: add an Approved By field and set it to Current user › email in the Approve button's Update record values.
  • Hide the buttons once decided: in the buttons' Visibility tab add Show only when Status is Sent. This is a display rule; the permission rules still protect the data.
  • Reject with a reason: open a modal page with a textarea and an Update record action that sets Status and Rejection Reason.

Common mistakes

  • The Status field has no Approved option: the update is refused by field validation. Check the options in Data → Quotes.
  • Customers have no update permission: the button shows "Your role can't update quotes." Use the portal variant or add the rule in Users → Roles & permissions.
  • The workflow trigger is set to Any field: it then fires on every edit of the quote, not only on approval.

Related

Was this helpful?