How SuiteCRM scheduled workflows use date conditions
A sales or service team that relies on someone remembering to check a date will miss some of them. A scheduler-triggered workflow removes that dependency: it checks records on a schedule and acts on the ones that meet its conditions, whether or not anyone has opened or saved them. Date conditions such as Now plus 10 days let you ask whether a field, like a quote expiry date or a follow-up date, falls within a window measured from the moment the check runs. Use this pattern for follow-up tasks, quote expiry alerts and stale-record clean-up. Choose a record-save trigger instead when the action must happen immediately after an edit, such as an assignment when a lead is created.
Scheduler-triggered workflows depend on two pieces of infrastructure: the scheduler job named Process Workflow Tasks and the cron entry that runs the SuiteCRM scheduler. If cron does not run, or runs under a system user that cannot write to the instance, nothing fires, and the record shows no error. Confirm both on your instance, and confirm the job's run frequency in the scheduler settings, because that frequency sets how quickly a date condition can react. Relative dates are evaluated when the job runs, so a record that becomes due between runs is picked up on the next pass. Plan for that delay in any alert wording or escalation timing that depends on exact hours.
Before you build, decide how broad the query should be and how often it should run. A condition that matches thousands of stale records will push a large set through every pass, so narrow the criteria by role, assigned user or record status. Test the count of matching records on a staging instance before enabling the workflow for production. Set the run-on and repeated-run options so the same record is not actioned on every pass. Confirm in the SuiteCRM Workflows documentation for your version how Now plus 10 days is entered and whether the time of day affects the comparison. Schedule heavy workflows outside busy hours and review the scheduler log after the first few runs.
Scheduler trigger options and when each fits
This table compares the run-on and frequency choices for scheduled SuiteCRM workflows and maps each one to follow-ups, expiring quotes and stale records. Read each row as a question to ask about the record set, then confirm the exact labels and defaults in your SuiteCRM 8.10 build before you rely on them. The main takeaway is that the run-on choice decides which records are candidates, while repeat and batch settings decide whether the same record fires again.
| Setting or choice | What it decides | Typical fit | Watch for |
|---|---|---|---|
| Run on new records | Whether the workflow only evaluates records created since it last ran | New leads or cases that need a first-touch task | Records that already match the condition when the workflow is activated may never be processed |
| Run on all matching records | Whether every record matching the conditions is evaluated each cycle | Stale records or expiring quotes, where the date condition itself is the trigger | Large record sets increase work per cycle, so add filters to narrow the population |
| Run once per record | Whether a record is marked as processed so it is not handled again | One-time follow-up tasks or a single reminder email per opportunity | If the condition changes later, the record will not be picked up again unless the setting is changed |
| Repeated runs setting | How many times a workflow may act on the same record | Recurring reminders where a second pass is intentional | Actions that undo their own conditions can produce repeated execution on every cycle |
| Date condition (for example, Now plus 10 days) | Which records meet the date window at the time the scheduler runs | Follow-ups due soon, quotes nearing expiry, records idle beyond a threshold | Confirm whether the comparison uses the record date or the run time, and check the time zone of the server |
| Scheduler frequency and cron timing | How often the Process Workflow Tasks job is triggered | Daily digests versus near-real-time reminders | Shorter intervals raise server load; confirm the scheduler job and cron user in your environment |
| Records processed per cycle | How many records a single scheduler run handles before stopping | High-volume populations such as large stale-record sets | Lower batch limits spread work across cycles, so delays may grow; test the expected backlog before go-live |
Setup sequence for a date-based scheduled workflow
This sequence takes a date-based SuiteCRM workflow from a cron check through a staging test to a live activation, with a verification step at each stage so that the first run on production records does what the design intended. It is the order most teams can follow regardless of whether the workflow sends email, creates tasks or updates a field.
Confirm cron runs the scheduler as the correct user
Before building anything, the server administrator confirms that the cron entry for SuiteCRM runs the scheduler job as the web server user that owns the application files, and that the job executes on the interval the team expects. Check the crontab entry for the scheduler, then run it once from the command line as that user and review the output and the application log for permission errors. The step is done when a manual run completes without errors and the scheduler's own status view shows the Process Workflow Tasks job as active. If the job runs as root or another user, files created by workflow actions may later be unreadable by the web server, so fix this first.
Define the date field and offset
The workflow designer chooses the date field the rule depends on, such as a quote expiry date, a last-activity date or a case created date, and sets the offset relative to the current time, for example a condition that compares the field against Now plus a number of days. Write the rule in plain language before entering it, stating which date triggers the action and whether the offset is before or after that date. Confirm with the business owner that the date field is populated consistently by users or by an import, because blank dates will silently fail the comparison. The step is done when the written rule can be read back to the business owner and matched against the field definition in Studio or Module Builder.
Set the filter conditions
Add the conditions that narrow the records the workflow considers, such as record status, owning team, module type or a flag showing the follow-up has not already been created. Keep the set of conditions as narrow as the rule allows, because the scheduler evaluates every matching record on each run and broad filters increase the work done on every cycle. Include a condition that stops the workflow from matching records it has already handled, so a record does not trigger the same action repeatedly. The step is done when a report or list view filtered with the same conditions returns the records the team expects, and no more.
Add the action and its recipients
Add one action to the workflow: an email alert, a task creation or a field update. For email, choose the template and confirm the recipient field resolves to the intended user or contact. For a task, confirm the assigned user and the relationship to the triggering record. For a field update, confirm the value written is one the rest of the system expects. Keep the first version to a single action so that any unexpected behavior is easy to trace. The step is done when a test record, reviewed by hand, shows the action's expected output and nothing else changed on the record.
Test on staging with a small record set
Copy a small, representative set of records to a staging instance that matches the production SuiteCRM version and configuration. The migration documentation for SuiteCRM advises testing on a staging instance and backing up files and database before changes, so take a backup of the staging instance as well. Set the date fields on a handful of test records so that some match the condition and some do not, and let the scheduler run. The step is done when the processed records list shows the expected records, the matching test record produces the action once, and non-matching records are left alone.
Confirm one test record fires once
Run the scheduler at least once more on staging, without changing the test record, and confirm the action does not repeat. A workflow that fires on every run usually has a condition that the action itself does not undo, such as a date that never moves or a flag that is never set. Review the processed records list and the workflow's run settings, and adjust the repeat behavior if needed. The step is done when a second and third scheduler run produce no new email, task or field change for the test record, and the team has written down the condition that prevents repeats.
Activate the workflow and watch the first live run
Activate the workflow on production during a window the team has agreed, after taking a fresh backup of the files and database. Watch the processed records list and the application log after the first scheduled run, and compare the number of records acted on with the count from the staging report. The workflow owner should check a sample of the affected records by hand. The step is done when the first live run matches the expected count, no unexpected records were changed, and the owner has signed off that the workflow behaves as the design describes.
How the scheduler evaluates a date-based workflow
The cron job runs the Process Workflow Tasks scheduler, which picks up active workflows and checks each candidate record against its date condition and run-on rule. Records that fail either check are skipped, so the first thing to confirm is that the condition is evaluated against the field you expect. Records that pass go to the repeat-run check, which decides whether the workflow may act on them again, and only then are actions executed and the record logged as processed. Use the processed records list to confirm that a record was handled once and not skipped silently.
Decision path a scheduled SuiteCRM workflow follows for each candidate record.
Writing date conditions that stay correct over time
A relative expression such as Now plus 10 days is not a fixed date. SuiteCRM evaluates it each time the scheduler runs the workflow, so the same rule selects different records on different days. Before you build the rule, write down what it should mean in business terms: records whose due date falls within the next ten days, or records whose date passed ten days ago. These two conditions look similar in the editor but produce opposite results. Confirm in your own instance exactly which reference point and operator the expression uses, then test it against a handful of records with known dates. Check the results on the day you run the test and again on the following day, so you can see the window move.
The field you choose decides what the condition actually measures. A due date answers whether a task is overdue, an expiry date answers whether a quote is about to lapse, and a last activity date answers whether a record has gone quiet. Choosing the wrong field is a common reason reminders fire on the wrong records. Confirm that the field is maintained by the process your teams follow. A last activity date that depends on someone logging a call may not move when a rep works the account through email. Time zones add a second layer. Scheduled runs follow the server clock, while users may see dates in their own time zones, so a record due late in the day for one team may qualify a day earlier or later for another. Agree one reference time zone per rule and test with records placed near midnight.
A date condition that stays true keeps matching the same record. If a follow-up rule says a task is due within the next ten days, that record will match on every scheduled run until the date moves out of the window or the condition changes. Without a guard, the same task or email is created again each time. Plan the control with the action: the workflow should change something the condition excludes, such as a status, a flag or the date itself, so the record leaves the matching set. The repeated-run settings are a second control, covered on their own page, and the two should be designed together. Before go-live, run the workflow on a staging copy and count how many times each sample record qualifies across several scheduled runs.
Keeping scheduled workflows from overloading the server
A date-based workflow runs against every record that matches its conditions, on every scheduler pass. The controls below decide whether that run stays small and predictable or competes with users for database and worker capacity. Set them before go-live, then measure them on your own data.
Narrow the date filter
A condition such as Now plus 10 days is only cheap when the database can narrow the search by the date field first. Check that the field you filter on is indexed and that the window is bounded, for example a due date within the next ten days, rather than every record that has ever had a date. Ask your database administrator to confirm the index exists on the production schema, not only on the staging copy.
Limit related-record updates per run
An action that changes a related module can touch many rows each time the workflow fires. A single account-level update that cascades to hundreds of contacts or cases is a common source of slow runs. Keep each run's action to the minimum set of records, and review any action that writes to a relationship with a high record count before enabling it.
Stagger workflow schedules
Several workflows set to run at the same scheduler interval will compete for the same worker and database time. Spread heavy date-based workflows across different times, and keep the scheduler cadence for each workflow as low as the business need allows. Document the schedule in one place so future workflow additions do not collide with it.
Batch large clean-ups
A one-off or periodic clean-up of stale records, such as closing old leads, should not run as one unbounded pass. Process the backlog in controlled batches across several scheduler runs, then switch to the normal narrow rule. Confirm with your team how many records each batch should cover, and measure the run time in your environment before scaling up.
Monitor worker and database load
Watch the scheduler and Messenger worker logs, run durations and database connections during workflow runs, and compare them with normal business hours. Look for runs that grow over time, which usually signals an unbounded filter or a growing backlog. Set alert thresholds with your operations team from your own baseline, not from a generic figure.
Test volume on staging first
Load a copy of production-sized data into staging, then run each scheduled workflow against it and record run time, row counts and database impact. Repeat the test after any change to conditions or actions. Ask your provider to include this volume test in the written scope, because a workflow that passes with a few hundred test records can behave very differently at production volume.
Questions buyers ask before building scheduled workflows
What drives the cost of building scheduled workflows in SuiteCRM?
The cost follows the number of workflows, how many business rules each one carries, and how much testing the rules need. Each workflow needs its trigger, date condition, recipients or record changes, and a check that it does not fire on the same record again and again. Data quality adds work when dates are empty, inconsistent or stored in different fields across modules. Ask any partner for a quote that lists each workflow separately, the test cases per workflow, and whether staging setup and handover documentation are included. Fixed-scope work is agreed in writing before it starts, so the scope document is where these items should appear.
How long does a build and test cycle for date-based workflows usually take?
Duration depends on scope, so the honest answer is that it rises with the number of workflows, the number of date rules and the depth of test coverage. A small set of follow-up reminders tested on staging is a shorter job than a set of escalation and stale-record rules across several teams. Ask for a timeline that separates requirements, build, staging tests, a scheduler run check and go-live support. Testing time matters most for date logic, because a rule that runs at the wrong hour or on the wrong day only shows its fault after real records have been touched.
What must our team provide before a partner starts building these workflows?
The partner needs written business rules, a named owner for each rule who can approve the outcome, sample records that reflect real data, and access to a staging instance that matches production settings. Also provide the list of fields used for dates, the teams and roles that should receive or be excluded from actions, and the expected volume of records. Without sample records, date conditions such as Now plus 10 days cannot be checked against the data that will actually trigger them. Staging access should allow scheduler runs so timing can be observed before go-live.
Can an internal SuiteCRM admin build scheduled workflows without outside help?
Yes, a capable admin can build simple scheduled workflows with the Workflows module, provided they can read date fields, understand run-on settings and test on a non-production instance. Difficulty rises when workflows interact, when several teams share the same records, or when a rule must be reproduced after an upgrade. Admins also need to confirm the scheduler runs under the correct user, which is a server task. Many organizations keep rule design and testing in house and bring in a partner only for the complex rules or for a review before go-live.
How do scheduled workflows affect server load, and how do we avoid overloading it?
Each scheduled run evaluates conditions against records, so a broad date rule over a large module costs more than a narrow one. Limit conditions to the records that matter, schedule runs at intervals that match the business need, and avoid rules that touch every record on every run. Confirm the hosting capacity with your platform team, and check that the cron job and the Messenger worker described in the installation documentation are healthy. Ask a partner to show load observations from staging before the rule goes live.
What goes wrong with date-based workflows after go-live?
The common problems are repeated runs on the same record, actions that undo their own conditions, time zone or date format mismatches, and workflows that stop because the scheduler or the user running cron has changed. Stale-record rules can also flood users with notifications if the condition matches too many records at once. Plan a monitoring check after go-live, review the processed records list, and assign an owner who can disable a rule quickly. Test each rule against records that should match and records that should not.
Do these workflows need a security review before they are deployed?
Date-based workflows that send email or reassign records touch personal data and access rights, so they belong in the same review as other changes. Confirm which roles can edit workflows, who receives notifications, and whether any action exposes records outside the owner's team. Keep an audit trail of workflow changes and approvals. The review should happen on staging, with a sign-off from the business owner, before the rule runs on production data.
When to bring in a partner and what to keep in-house
Keep routine rule changes and monitoring in-house once the handover is complete. Your admins can change a follow-up interval from 10 days to 14, add a status value to a condition, or retire a workflow that no longer matches the sales process, provided they make each change in a staging copy first and record what changed. Monitoring is also work the internal team should own: check that the Process Workflow Tasks scheduler runs at the cadence you designed, review the processed records list for workflows that touch the same records every run, and confirm that the scheduler's cron job runs as the account you documented. Your team needs a short runbook for these checks and a named owner who reviews them on a fixed schedule, because a date-based rule that silently stops firing produces no error message that anyone sees.
Bring in outside review for condition logic that combines several date fields, high-volume clean-ups and upgrade testing. Conditions such as Now plus 10 days applied to related records, nested under status or ownership checks, are easy to write and hard to verify, and a second pair of eyes often finds a condition that matches far more records than intended. A bulk action that closes or reassigns thousands of stale records should be scoped and tested by someone who has done it before, with a backup taken first. Upgrade testing matters too: SuiteCRM minor 8.x releases arrive roughly every eight weeks, so ask whether your scheduled workflows have been tested against each target version on staging before production. A fixed-scope engagement suits a defined set of rules and a clean-up with agreed deliverables. A retainer suits ongoing rule changes, release testing and periodic review of the scheduler load. Ask any partner to state in writing which of these they will test, how they will verify timing, and what they will hand over.
How DeployOpen scopes date-based workflow work
The sequence turns a set of date-based workflow ideas into a written scope, a tested staging build, and a handover that your team can run and tune after go-live.
Inventory the date-based automations
DeployOpen reviews the follow-ups, expiring quotes, stale records and escalations you want automated, and records for each one the module, the trigger date field, the time offset and the expected outcome. You confirm which records are in scope and which should stay manual. The step closes with a single inventory list that both teams sign off on before any configuration starts.
Agree conditions, owners and run rules
For each workflow, the scope names the exact date conditions (for example, a record whose date field is at or before Now plus a stated number of days), the run-on setting, the repeated-run limit, and the person or role accountable for the outcome. Owners are named so that someone receives the notifications and answers for the results. The step closes when the conditions and owners are written into the statement of work.
Write test cases before building
DeployOpen writes test cases for each workflow covering records that should trigger, records that should not, boundary dates, records that already triggered, and records that a workflow action might change back into its own trigger. Your team reviews and approves the cases. The step closes with an approved test case list that becomes the acceptance criteria for staging.
Build workflows on a staging instance
DeployOpen configures the workflows on a staging SuiteCRM 8 instance, not on production, and documents the scheduler job, the server user that runs it, and the cron entry the platform depends on. Load testing uses representative record volumes agreed in scope, so the team can see how the scheduler behaves when many records match at once. The step closes when the build matches the agreed conditions and the staging scheduler runs cleanly.
Run tests and confirm timing
Each approved test case is executed on staging with records dated to the boundaries, and the results are logged against each case. Where a workflow's timing matters, the team checks that the scheduler picks up matching records within the window it was designed for. Failures are fixed and retested, and the step closes with a signed test report showing every case passed or an accepted exception.
Move to production and hand over
The workflows are deployed to production during an agreed window, with a rollback plan that disables the workflows without deleting records. DeployOpen delivers documentation covering each workflow's purpose, conditions, owners and dependencies, plus a monitoring checklist that tells the operations team what to check for the scheduler, processed records and notifications. The step closes when your team confirms they can run the checklist without DeployOpen present.
Tune through an optional retainer
After go-live, the first real results often show that a threshold or owner needs adjustment. Ongoing tuning, changes to conditions, new date-based workflows and retesting after SuiteCRM minor releases can be covered by a retainer agreed in writing. The retainer scope, response expectations and any additional fees are set out in its own written agreement, and the step closes when that scope is signed or your team declines it and keeps the handover documents.
How DeployOpen works on SuiteCRM scheduled workflows and date-based conditions
DeployOpen plans, builds, tests and documents date-based SuiteCRM workflows inside infrastructure you control, so follow-ups, quote expiry and stale-record rules run on your schedule and your server. Each engagement starts from a written scope that names the workflows, date conditions and load limits before any build begins.
How we scope
- Inventory each date-based rule, its trigger module, its date field and the action it should take
- Agree run-on settings, repeated-run limits and expected record volumes before any workflow is built
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
How we build
- Build scheduler workflows with explicit date conditions, such as a relative offset from a record date, in a staging instance first
- Check that each action clears its own condition so a workflow does not repeat on the same record
- Measure scheduler run times on representative data to confirm batches do not overload the server
How we hand over
- Deliver a written register of each workflow, its conditions, schedule, owner and rollback steps
- Document how the Process Workflow Tasks scheduler, cron user and logs are checked after go-live
- Run a handover session so your admins can edit date conditions without breaking dependent rules
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after go-live
- Retest affected workflows when you move between SuiteCRM 8 releases, after reviewing each release's changes
- Review workflow logs and the processed records list on a schedule agreed in the retainer

