Skip to content
Sandadocs

Workflows in the CRM

Let the CRM do the routine work when something changes, on a schedule, when a date comes up or another system calls, and hold a move for approval.

For owners and admins

A workflow does the routine work for you. When a new deal comes in, it can assign it and email its owner. Every Monday, it can email an owner a digest of what moved and who has gone quiet. Sixty days before an agreement's notice date, it can email one of your team to decide whether it renews. Each run goes step by step on one record, and its history says what each step did. The Workflows page opens with examples, in your CRM's own names for its records.

Workflows are part of Premium. Owners and admins make them under Workflows in the CRM's left rail, beside Streams and Settings. A CRM on Standard keeps any workflows it has, and none of them runs until it is on Premium again.

How a workflow is built

A workflow is a trigger and then a straight line of steps, drawn top to bottom on its page. Press a card to change it on the right; press + between two cards, or at the end, to add a step there. Each step can move up or down, or be removed.

Any step but a wait or an approval can have conditions, written as Only if on its card (put a wait's on the step after it, and an approval's on the trigger): the step runs only when the record meets them at that moment, and is skipped otherwise. A record's age in days counts from the day it was added on your workspace's time, so a lead added early in the morning is a day old the next day. Days since anything was logged counts from the last call, email, meeting or note with the record (a company's own, its people's and its deals'), or from the day it was added when nothing has been, so more than 30 is a record gone quiet for a month. A deal's Lost reason is what whoever moved it to a lost stage said, and empty when they said nothing. A roll-up is tested as what it comes to on the day, such as a company's monthly fee over 5,000; a workflow never sets one, and never starts when one changes, since nothing is changed on the record when a linked one is. A workflow takes up to 12 steps, and a trigger or a step up to 10 conditions.

A new workflow is made switched off. Press Save, then switch it on when it is ready. Switching one on checks it again against the CRM as it is now, so a stage, a field or a view it names that has gone since is said there and then.

Start from a template

Start from a template on the Workflows page offers a ready-made workflow:

Template What it does
Monday digest Every Monday morning, email an owner one digest of agreements whose notice falls in the next 90 days, deals that moved last week, and clients nobody has been in touch with for 30 days

Triggers

Trigger What starts it
When a record is added or changed A company, person, deal or agreement is added, one of its fields changes, or a deal moves to a stage you choose, optionally on one pipeline only. With conditions, only a record that meets them
On a schedule Every hour, every day, every weekday, every week on a day or every month on a day, at an hour you choose, on your workspace's time. It runs once on no record, or once for each of your companies, people, deals or agreements: All of them, or those in a saved view everybody can see, up to 200 records a run, and each record once even when the run is retried. With conditions, only the records that meet them
When a date is coming up A number of days before a date on a record, on the day, or a number of days after it, at an hour you choose: a deal's expected close, an agreement's notice date, or a date field of your own. Each record once for each date (below)
When another system calls its address A tool like Zapier or n8n, a partner's system or your own code sends to the workflow's own address (below)

When a date is coming up

Choose the records, the date it waits for and when: up to 365 days before it, on the day, or up to 365 days after it, at an hour on your workspace's time. The dates on offer are:

  • A deal's Expected close.
  • An agreement's Start date, End date, Notice date and Signed on. An agreement has no lines since November 2026, so a workflow from before then that waited for a line's start date, or a trial's conversion date, finds that date gone: it pauses and says why, and you choose another date.
  • Any date field of your own on companies, people, deals or agreements.

It reaches each record once for each date. When the date changes (an agreement's end moves, and its notice date with it), the record is reached again for the new date, and never twice for the same one.

Days before a date, a record is reached on the first run from that many days before until the day itself, so a notice date written in 45 days ahead is reached on the next run of a workflow that waits 60 days before it, and the date's own day is the last chance. On or after a date, a day the workflow could not run is caught up for 7 days, and an older date is never reached, so switching one on does not set off a run for every date in the past.

A record that does not meet the trigger's conditions on the day is reached later if it comes to meet them before its window closes: a reminder for agreements that are Current reaches a draft once it is signed and Current. A run reaches up to 200 records, the earliest dates first, and the rest on the runs after. If the date field it waits for is archived, the workflow pauses and says why.

A workflow run over a saved view, and a digest's A saved view section, take the records the view's list shows, its filters read the same way: a window on a date, when something was last logged, several values for one filter, and a deal's tag (Invoiced, Paid, Invoiced, not paid or No tags).

The CRM keeps no tasks, so a view that narrowed by Next follow-up, saved when it had them, is not offered for a workflow or a digest. A workflow already running over one pauses on its next run and says why, rather than reach every record, and a digest leaves that section out.

Changes that arrive by importing a CSV, by a stream or from a workflow never start a workflow, so a big import does not set off hundreds of runs and two workflows can never set each other off. Nor do the changes Sanda made when it made each deal and its order one record (see orders from before), so no workflow sent an email or made a task because of them. A workflow reacts to changes made after it is switched on, never to earlier ones. Each change is read once, in the order it was saved, so one that took a moment longer to save than the change after it is still read, and never twice.

Steps

Step What it does
Ask for approval Holds a move until a member you choose approves it: a deal moving to a stage, or an agreement's status changing. Always the first step (below)
Update a field Sets one field of the record: its Owner (an agreement has none), one of your own fields, or one of its own. A company offers Name, Domain, Industry, Size, Location and Notes; a person Name, Title, Email, Phone and LinkedIn; a deal Name, Value, Expected close and Stage; an agreement Name, Status and Signing link. On Premium, an agreement a workflow moves to Current is read by Sam from its signed copy, or its note drafted from its record when it has none, and in a CRM that keeps tasks whoever signed it for you is given a task to check it (what you are bound by). A step from before November 2026 that moves an agreement to an old status (Signed, Active) moves it to what that became
Assign Makes a member the record's owner, or members in turn, one record each. Not for an agreement, which has no owner
Email your team Emails the record's owner or a member you choose. It never emails a customer or a contact
Email a digest Emails a member you choose one email about many records: what is coming up, what moved, who has gone quiet (below). For a schedule that runs once, on no record
Send to another system Sends a request to another system's web address: the record, text you write, or nothing
Wait Waits some minutes, hours or days, up to 30 days, before the next step

A field's value, an email's subject and message, and a request's text can use the record's values, each written in double braces:

Text
{{name}}  {{owner}}  {{company}}  {{email}}  {{value}}
{{stage}}                 a deal's stage, or an agreement's status, as your CRM names it
{{link}}                  the record's address in the CRM
{{custom.your_field}}     one of your own fields, by its key
{{body.your_key}}         from a call to the workflow's address, what was sent
{{date}}                  from a date coming up, the date, such as 1 March 2027

Ask for approval

Ask for approval holds a move until the member you choose approves it: an agreement with a term under a year waits for an owner before it moves to Sent, or a deal over a value waits for a manager before it is won. It is always a workflow's first step, on a workflow that starts When a record is added or changed with a deal moving to a stage, or an agreement's Status changing. Which moves wait is the trigger's to say, with its conditions: Term in months, an agreement's whole months from its start to its end, is one, and a rolling agreement has none. Write a line saying why it waits, if you like; it is shown on the record and in the approver's email.

When somebody moves a record the workflow matches, on its page, on the board, or through Sam or a connected assistant, or DocuSign moves an agreement once its envelope is sent or signed, or a client's email in somebody's Gmail signs an agreement or wins or loses a deal:

  • The move waits, and the record stays where it was. Whoever moved it is told who it waits for, and anything else they changed at the same time is saved.
  • The approver is emailed, and finds it under Waiting for your approval on Home and above the record's details, with Approve and Decline.
  • Approve makes the move, as the approver, and the rest of the workflow runs. Its first step says who approved it. A move said to have happened on a day in the past, such as a deal an assistant brings in after the fact, is made on that day.
  • Decline leaves the record where it was, with a reason if the approver gives one. Whoever asked is emailed either way.
  • Whoever asked can Withdraw it, and so can an owner or admin. A move DocuSign asked for is withdrawn by its approver, or an owner or admin, and nobody is emailed about how it was decided. A move an email asked for says it came from An email in whoever's Gmail it was, such as An email in Jo Tran’s Gmail, and the approver is the one whose own move goes straight through, so an email in the approver's own Gmail is not held. When the approver has left the workspace, an owner or admin decides it.

The approver's own moves go straight through, and so do moves an import, a stream or another workflow makes. A record has one move waiting at a time: moving it somewhere no approval holds settles the request, and the History says so. An agreement made already at a status that waits, or a deal made at a stage that waits, is made where a new one starts and its move waits like any other. When two workflows hold the same move, it waits for each approver in turn. Each request, and how it was decided, is a line in the record's history.

Email a digest

A digest is one email that sums up many records, such as a Monday email to an owner. Put it on a workflow On a schedule that runs once, on no record, choose who it goes to and its subject, and add up to 8 sections. Each section lists up to 20 records, each a link to it in the CRM, and says when there are more:

Section What it lists
Notice coming up Agreements whose notice date falls in the next so many days, soonest first, leaving out ended and terminated ones
What moved Deals, or agreements, that moved stage or status in the last so many days, with where each is now
Gone quiet Companies, or people, nobody has logged anything with for so many days, the quietest first
Newly added Records added in the last so many days
A saved view The records in a saved view everybody can see

Each section is read when the digest is sent, so it is always what the CRM says that morning, and titled in your CRM's own names for its records. A section with nothing in it says so.

Send to another system

The address must be https, on the standard port, with a public hostname: not an IP address, even a public one, and not a name that only works inside a private network, such as one ending in .local, .internal or .test. Save refuses any other address, since every run would. A request takes up to 10 seconds, a redirect is not followed, and an answer of 5xx or no answer is tried again a few times before the run fails. Up to 5 headers can go with it, such as a key the other system asks for; each is kept sealed and shown afterwards only by its last two characters, so leave one blank to keep it as it is. A header's value only ever goes to the address it was typed for: point the step at another host and you type its headers again.

Text that starts with { or [ is sent as JSON. Each value put into it is escaped, so a quote or a line break in a name can never break it or add a key of its own; text that is not valid JSON once the values are in stops the step with the reason. Other text is sent as plain text. A Content-Type header on the step is the type the text goes as instead.

A request is never sent about somebody marked do not contact or unsubscribed: the step is skipped and the run says why.

Steps from the retired business types

The Allocate new leads and Call lapsed regulars templates went with the Mortgage broking and Catering business types in November 2026 (see business types). A workflow made from one keeps its steps, but a step that allocated a broker, or emailed a lead's broker, does nothing now: it is skipped, and the run's history says why. Open the workflow to change the step, or switch the workflow off. A schedule over a saved view that filtered by a customer's status, a regular or their last order reaches nobody, so it does nothing either.

A workflow saved when the CRM had tasks may hold an Add a task step, or a digest with a Tasks overdue section. The step adds nothing now and says so in the run's history, and the digest leaves that section out. Open the workflow to take the step out, or to email somebody instead. The templates that added a task (Ask why a deal was lost, Follow up after a stage, Remind before notice dates and Approve short agreements) are no longer offered.

Its address

A workflow that starts When another system calls its address has an address of its own, shown on its page with a copy button and an example. Send it a POST with a JSON object or form fields, URL-encoded or multipart, as a form sends them: a field sent twice, like a group of checkboxes, arrives as a list, and a file is left out. To run it on a record, name one: id or record_id for a record of the kind it runs on, or email for a person. A call that names none, or names one the CRM does not have (such as another system's own id), runs without one. It answers 202 when the run has started.

Answer Why
202 The run has started
400 It was not one JSON object or form fields
403 The workflow is switched off, or the CRM is not running workflows at the moment
404 There is no workflow there: the address was mistyped or made new
413 It was larger than a workflow takes
429 Too many calls came from one connection in a minute (up to 60 to one CRM), or the CRM has started its day's runs
503 The run could not be started just then. Nothing runs from that call, so send it again in a minute and it runs once

Treat the address like a key: whoever has it can start the workflow, and learns nothing else. Make a new address replaces it, and the old one stops working at once.

Runs and history

Runs, beside Build on a workflow's page, lists its newest 50 runs: what started it (a change, its schedule, a date coming up, a call to its address, or you, trying it), the record it ran on, and each step with what it did or why it was skipped or failed. Try it runs the workflow now, for real, on a record you choose, even while it is switched off.

Every change a workflow makes is in the record's history, as The workflow and its name.

When a run fails

A run stops at the step that failed; the steps before it stay done. The CRM's owners and admins are emailed, at most once a day for each workflow, with what stopped it. In a Sanda workspace this follows the console's Settings · Plan & budget · Budget & alerts: Also send to adds addresses, and When a scheduled run fails, or pauses itself after failing repeatedly turns these emails off. A workflow whose runs fail 5 times in a row pauses itself and says why on its page. Every run counts once towards this, even when several finish at the same moment. Fix what stopped it, then switch it on again.

Limits

  • Up to 25 workflows in a CRM.
  • Up to 2,000 runs a day across a CRM's workflows. Past that, nothing more starts until the next day: a change that would have started a run is listed as skipped, with the reason, and a call to a workflow's address is answered 429.
  • While the CRM is read-only after its trial, its workflows rest.

Something unclear or out of date? Tell us, and we will fix the page.