Each recipe below is one workflow. Build it on the canvas (Build a workflow on the canvas), test it with a dry run, then switch it on. Field names (Status, Amount…) are examples: use your module's own.
E-mail a PDF to the customer
Send the invoice PDF when an invoice is marked Sent.
Module: Invoices. Trigger: After Updated. Condition: Status changed to Sent
Add Generate PDF: pick the invoice template and turn on Save a copy on the record
Also turn on Wait until the document is ready before the next step: a big document is prepared in the background, and without the wait the e-mail would go out without it.
Add Send Email
To (email or expression): {{record.customer.email}}. Subject: Invoice {{record.invoiceNumber}}. Attachments (optional): {{signal.documentFileId}}. In the body, link to the customer portal with {{portalUrl}}, not {{recordUrl}} (that one needs a Scratchboard login).
Only files of the record can be attached: up to 5 files and 10 MB per e-mail. When a file cannot be attached, the step fails and nothing is sent. For WhatsApp, use Send Message with a WhatsApp template that has a document header (one document).
Quote → signature → accepted
Module: Quotes. Trigger: Manual (people run it from the quote's ⋯ menu), or After Updated with Status changed to Ready to send
Add Generate PDF with Save a copy on the record and Wait until the document is ready before the next step
Add Request Signature
Document: {{signal.documentFileId}}. Who signs: name {{record.contact.name}}, e-mail {{record.contact.email}}, role Customer.
Under When signed, add Update Field: Status = Accepted
Under When declined, add Update Field: Status = Rejected, and a second one that saves {{signal.signatureDeclineReason}}
Under When it expires unsigned, add Update Field: Status = Expired
Details: E-signature in workflows.
Approval with a rejected status
A discount over 20 % needs a manager's approval.
Module: Deals. Trigger: After Updated. Conditions: Discount changed, and Discount greater than 20
Add Request Approval
Title: Approve {{record.discount}} % discount for {{record.name}}. Or everyone with the role: Sales Manager, with Send to admins when nobody holds the role. Due in (hours): 48.
Under When the request is rejected, choose Set a field on the record: Status = Discount rejected
Under On Approve (actions), add Update Field: Status = Discount approved
Under On Reject (actions), add a Notification to Record Created By with Rejected by {{signal.approvalResolvedByName}}: {{signal.approvalNote}}
Steps after the approval step run only when it is approved. Details: Request approvals with a workflow.
Follow up after some days
Remind the owner if a quote is still open three days after it was sent.
Module: Quotes. Trigger: After Updated. Condition: Status changed to Sent
Add Delay / Wait: Relative Delay, Duration 3, Unit Days
Add If / Condition: Status equals Sent
The quote may have been accepted while the run waited; this check skips the reminder then. Workflow conditions are checked only when the run starts, so use an If step after a delay.
In the Yes branch, add Create Action Item
Title: Follow up on {{record.name}}. Who: A person field of this record (the owner). Due: In … days, 1.
For many records, a Scheduled workflow is an alternative: run daily with conditions Status equals Sent and Sent on older than 3 days, and set a marker field so each quote is reminded once.
Notify only the people who can act
Tell the people who can edit an order that it is ready to ship, but not the person who marked it.
Module: Orders. Trigger: After Updated. Condition: Status changed to Ready to ship
Add Notification
Send to: Several people / roles… with the role Warehouse. Only people who can: … edit this record. Never tell: {{user.id}} (the person who made the change). Title: Ready to ship: {{record.orderNumber}}. Link (optional): a path inside Scratchboard, for example /m/Order/{{record.id}}.
If nobody is left after these filters, the step is skipped.