SuiteCRM workflow automation

SuiteCRM workflow automation covers which sales and service steps to automate with workflows, scheduler jobs, email templates and campaigns, and which logic belongs in custom code that survives upgrades.

On this page

Where SuiteCRM workflow automation fits sales and service work

A sales operations lead assigns every inbound lead by hand, and a service manager scans the case queue each morning for tickets that have gone quiet. SuiteCRM 8 workflow automation can remove these manual steps by acting on records as they change, so routing, escalation and follow-up happen without someone watching a list. The harder decision is which logic belongs in workflows and which belongs in custom code, because that choice determines who can change a rule, how it is tested, and what breaks when the platform is updated. Start by listing each automated rule with its trigger, its data inputs, its owner and any external system it touches. Rules that depend only on fields inside SuiteCRM, and that a trained administrator should be able to adjust, usually fit in workflows.

Automations are most fragile at the edges of the platform. Moving from SuiteCRM 7 to 8 is documented as a migration, not an upgrade, so the 7 data is moved into a new 8 environment and customizations must be reviewed and confirmed before they are trusted. The SuiteCRM migration documentation warns that non-core files under the public/legacy folder may be removed, so any custom code stored there is at risk. Scheduled jobs, email templates and campaign settings may also need checking after the move, because their references to fields, users and queues can point at things that have changed. Build an inventory of every rule and job before cutover so none of them is lost in the move.

Which SuiteCRM 8 parts run workflows, jobs and campaigns

Automation in SuiteCRM 8 is spread across several components, each with its own trigger, owner and failure mode. Workflows react to record changes, scheduler jobs run on the server on a timer, templates control what messages say, campaigns track outreach, and custom code covers rules the other parts cannot express. Confirm each one in your own instance before deciding where a business rule belongs.

Workflow definitions and triggers

Workflows run actions when a record is created or changed and its conditions match, such as assigning a lead, setting a field or sending an email. Confirm which modules offer workflow triggers in your version, which actions are available out of the box, and who can edit workflow definitions. Test each rule with a record that matches and one that does not, and record the user account the actions run under, since that account decides which fields and emails it can touch. Rules that chain into each other are the usual source of unexpected edits.

Scheduler jobs on the server

Scheduler jobs run on the web server without a user logged in, so they handle work such as cleanup, reminders, scheduled campaign sends and processing queued workflow actions. Confirm that the cron entry that triggers the scheduler is installed on every server that runs the application, and that the job list in your instance matches what you expect. Check each job's interval, last run time and failure output after cutover, because a job that silently stops is hard to notice from the user interface.

Email templates and variables

Email templates hold the subject, body and merge fields used by workflows, campaigns and manual sends. Each variable must resolve to a real field on the record, so renamed or removed fields break messages without an obvious error. Confirm which fields the template pulls from, how blank values render, and whether the sending mailbox and its SMTP settings are correct for each environment. Have legal or compliance staff approve templates that contain contractual or regulated wording before they go live.

Campaigns and response tracking

Campaigns group marketing sends, track recipients and record responses such as opens, clicks and unsubscribes, which then feed lead and contact records. Confirm which tracking features your version and mail provider support, how unsubscribe requests are honored across lists, and how bounced addresses are handled. Confirm also who owns the campaign data and how long it is kept, because opt-out status is the field most likely to be lost during a migration or import.

Logic hooks and custom code

Logic hooks and custom code cover rules that workflows cannot express, such as multi-step calculations, calls to external systems or conditions across several modules. Each custom rule adds maintenance work at every upgrade, so keep a written register of what it does and why. Confirm that the code is tested on the staging instance against the next minor release before it reaches production, and that a named owner can change it when a field or module is renamed.

SuiteCRM LTS page

Workflow, scheduled job, logic hook or custom code: which to choose

This table compares the five mechanisms a team usually weighs for a SuiteCRM automation: built-in workflow, scheduler job, logic hook, custom module code and an external integration. Read each row for when the option fits, what it costs to run, and how it behaves when SuiteCRM is upgraded. The main takeaway is to start with the simplest mechanism that stays visible to administrators and to reserve code for logic that workflows cannot express.

OptionWhen it fitsRun and maintenance costBehavior on upgrade
Built-in workflowField-driven rules on records, such as assigning a lead, sending a templated email or updating a status when a condition is metLow. Administrators can review and change rules without a developer, but rule sprawl needs an owner and periodic reviewUsually carried forward, but each upgrade needs a regression check of active rules and their email templates
Scheduler jobTime-based work such as reminders, overdue follow-ups, nightly sync checks or cleanup, which must run even when no record is savedLow to moderate. Someone must monitor job runs, failures and run frequency, and the cron or scheduler must be kept workingJob definitions usually persist, but changed base classes or dependencies need testing after each minor release
Logic hookLogic that must run on save, delete or retrieve of a record and cannot be met by a workflow, such as derived fields with custom calculationModerate. Requires a developer, documentation of each hook and a test for each module it touchesHigher risk. Hooks depend on core module behavior, so each upgrade needs a targeted review of every hook
Custom module codeNew business objects, custom screens or complex processes that need their own data model and permissionsHigh. Ongoing ownership of code, schema, tests and dependencies, typically with a developer on callHighest risk. Built on extension points that must be checked at every upgrade, and the code must follow the supported approach
External integrationWork that belongs in another system, such as ERP order posting, telephony events or marketing platform syncModerate to high. Costs include the integration service, API credentials, field mapping, error handling and monitoring of both systemsCore upgrades affect the SuiteCRM side only through the API contract, so version changes on either side need joint testing

A record change reaches an automation only after several checks, and every failure needs a log entry

The flow starts when a user creates a lead, updates a case or moves an opportunity to a new stage. SuiteCRM checks whether the trigger matches, then evaluates the workflow condition. If the condition passes, the action runs: a field update, an email template, a task or an external call. Time-based actions wait in the scheduler and run later, so a job that never fires is a common blind spot. Check the log at each failed condition and failed action, and decide where a person must approve before the action runs.

Path of a record change through triggers, conditions, actions and the scheduler.

How to build SuiteCRM workflow automation in order

This sequence turns sales and service processes into tested, documented SuiteCRM rules that run on a staging instance before anything reaches production. Each step ends with a check so the team can confirm the rule does what the process owner expects.

  1. Map each process with its owner and trigger

    Start by writing down every sales and service process you intend to automate. For each one, record the business owner, the event that starts it (a new lead, a case status change, a quote approval, a date reached), the expected outcome, and the exception path a person currently handles by hand. Agree this list with the owners before any configuration begins, because it defines the scope of later testing. Done means each process has a signed-off one-line trigger and outcome, and the list has been reviewed by the people who will be affected by the rules.

  2. Confirm the modules and fields each rule touches

    For every process, list the SuiteCRM modules and fields it reads and writes, including related records such as accounts, contacts, cases and opportunities. Check whether those fields already exist, whether they are required, and who can edit them under current security group and role settings. Flag any field the rule would need that does not yet exist, since adding fields belongs to the customization work and should be decided before you build. Done means a field map exists for each process, and the owner has confirmed that no rule depends on a field that is still undecided.

  3. Set up a staging instance on a supported stack

    Build a staging SuiteCRM 8 instance that matches production as closely as possible, using a PHP, Apache and MariaDB or MySQL combination listed in the SuiteCRM 8 compatibility matrix for the release you run. Confirm the exact versions for your release in that matrix rather than assuming them. Take a file and database backup of the source before any change, and keep test data separate from real customer records. Done means staging starts cleanly, a test user can log in, and the versions in use are recorded in your change log.

  4. Build one workflow at a time

    Create a single workflow in SuiteCRM for one process, using the trigger, conditions and actions agreed in step one. Keep conditions explicit and avoid chaining several rules that change the same field, because overlapping rules are hard to diagnose later. Save the workflow in a disabled or limited state on staging first. Done means one workflow is saved, its conditions are written in plain language next to the configuration, and a tester has created a record that meets the trigger and confirmed the action fires once and only once.

  5. Test the expected field change on test records

    Before adding the next rule, run a set of test records through the workflow: one that matches, one that does not match, one that sits on a boundary value, and one with missing data. For each, compare the actual field values after saving with the outcome the process owner wrote down. Repeat any edit or save path that users will use, including edits made from list views and imports if they apply. Done means every test record shows the expected field change or the expected absence of one, and any mismatch is logged, fixed and retested.

  6. Configure email templates and run test sends

    Where a workflow sends email, build the template with merge fields that come from the fields confirmed in step two, and check that each merge field fills correctly on a test record. Send test messages to internal mailboxes only, from the same sending configuration production will use, and check headers, links, sender name and reply handling. Confirm that a template for an unfilled field fails in a way a person would notice. Done means each template has been received in test mailboxes with correct content, and the test messages are kept with the change record.

  7. Schedule time-based jobs and confirm they run

    For rules that depend on elapsed time, such as follow-up reminders, stale case escalation or campaign follow-ups, configure the scheduler jobs in SuiteCRM and set a schedule the team agrees with. Confirm that the scheduler runs in the environment, that the job appears in the scheduler log with a successful status, and that it changes only the records that meet its conditions. Test the job against backdated test records rather than waiting for real time to pass. Done means each scheduled job has run on staging, its log entry shows the expected result, and the production schedule is written down with the job owner.

  8. Document each rule and decide what stays in code

    Write a short record for each workflow, job and template covering its owner, trigger, conditions, actions, the fields it reads and writes, test cases used, and the last date it was reviewed. Note any requirement that outgrew workflow configuration and was moved to custom code, with the reason, so the customization team can review it before each upgrade. Keep the record with the change history so that anyone changing a field later can find affected rules. Done means every live rule has a documented entry, and the owner has signed off that the record matches the configuration.

What drives SuiteCRM workflow automation effort

This table lists the factors that raise or lower the effort of automating SuiteCRM processes, and how each one is kept under control. Read each row as a question to answer before scoping, since the number of processes and the number of external systems usually matter most. The main takeaway is that narrow, template-based rules in documented workflows are far cheaper to build, test and maintain than custom code.

DriverWhy it changes effortHow the team keeps it down
Number of processesEach sales or service process adds triggers, conditions, owners and exception paths to design and test.Start with the two or three processes that cause the most manual handoffs, and defer the rest to a later phase.
Modules and fields touchedWorkflows that read or write many modules and custom fields need more mapping and more regression checks after each change.Limit each workflow to the fields it needs, and reuse existing standard fields before adding custom ones.
Dependency on external systemsERP, marketing, telephony or web form data passing through a workflow adds API credentials, field mapping and error handling.Keep external calls out of workflows where possible, and move any sync logic into a separately designed integration.
User roles that see different resultsSecurity groups and role-based access change which records a rule acts on and which users see the outcome, so each role needs its own test cases.Confirm the role and security group model first, then test one representative user per role rather than every account.
Email volume and approval stepsAutomated messages and multi-step approvals need template reviews, recipient checks and handling of bounces or missed approvals.Reuse a small set of approved email templates with merge fields, and cap approval chains at the steps the business needs.
Staging and test environmentsChanges must be proven on a staging instance before production, and each extra environment adds setup and data refresh work.Keep one staging instance with anonymized data, and script repeatable test cases for the most important rules.
Compliance review of outbound messagesMarketing and service emails may need consent checks, retention rules and legal or brand sign-off before they go live.Ask the business owner to approve the message list and consent logic early, and confirm the review steps with the compliance team in writing.
Scheduler jobs and timing rulesScheduled jobs for reminders, follow-ups and campaigns depend on the scheduler running correctly, which adds monitoring and time zone checks.Document each job's schedule and owner, and confirm with the platform team how the scheduler runs in your hosting setup.
Workflow versus custom code decisionsLogic that fits a documented workflow is easier to review and upgrade than custom code, but complex branching may still need code.Write each rule down first, move what the workflow tools can express, and limit custom code to logic that truly needs it.

How to test SuiteCRM workflow automation before go-live and when it fails

Test every workflow before go-live with three kinds of cases: positive cases where the trigger should fire and the action should complete, negative cases where the trigger should not fire, and boundary cases at the edges of the rule, such as a lead score of exactly the threshold, a record with an empty owner, or a date falling on the day a job runs. Run these on a staging instance seeded with test accounts, contacts, leads and cases that mirror production field values, and use test users in each security group and role that the workflow touches, because a rule that works for an administrator can fail silently for a sales representative whose access is narrower. Record the expected result for each case before you run it, so the test proves a behavior rather than confirming what the build happened to do. Keep the staging database separate from production so that test emails and integration calls cannot reach real customers or external systems.

Confirm three things for each workflow. First, scheduler jobs should run at the times you configured, so check the scheduler's last-run and next-run data and watch one full cycle across a day boundary and a daylight saving change if your servers observe one. Second, emails should render with the right merge fields and reach only the intended recipients, so send to a seeded inbox list and check the To, Cc and Bcc lines, the sender address and any unsubscribe handling against your marketing consent records. Third, a failed action must leave a visible trace: confirm that an error produces a log entry, a flagged record or a notification to a named owner, and that a retry does not send a second copy of an email. Confirm the exact log locations and retry behavior with the SuiteCRM version you deploy, since these details change between releases.

Design the failure path before the happy path is trusted. A safe failure means the process stops at the step that cannot be completed safely and places the record in a human queue, such as a task assigned to a service team lead, instead of guessing a value or sending a fallback message. For example, if a workflow sends a payment reminder and the customer's billing status field is empty, the correct result is a review task, not a reminder sent to a possibly paid account (this example is illustrative). Test this by deliberately breaking each dependency, including a missing field, an unreachable mail server and a failed call to an external system, then checking that no customer receives a wrong message. Review failure paths again after every upgrade, because a patch or minor release can change how a step reports errors.

Email sending, permissions and data exposure in automated SuiteCRM processes

Automations in SuiteCRM act on records, send email and call external systems without a person clicking anything. The controls below decide what a workflow can reach, who can change it, and what leaves the system. Review them together before any workflow goes live, because a single over-permissioned automation can touch far more data than its author intended.

Service account behind each automation

Every workflow and scheduled job runs as a specific user, and that user's roles and security group memberships decide what it can read and change. Confirm which account each automation runs as, and avoid running production rules as a full administrator. Create a dedicated service user per function, such as lead routing or renewal reminders, with only the module and field access that function needs. Document the owner of each account so that disabling a departed employee does not silently stop or break a process.

Who can edit workflows and templates

Workflow definitions and email templates are configuration, and a change to either can alter who receives what and which records get updated. Restrict edit rights for workflows and templates to a small admin group, and require a second person to review changes before they reach production. Keep a staging copy so that new rules are tested with non-production data first. Ask your partner or internal admin how change history is recorded, since you will need it when an automation misbehaves.

Limiting outbound email to approved templates

An automation that sends email can send it to the wrong recipient or with the wrong content if the template or recipient field is wrong. Allow automated sending only from approved templates, and limit recipients to contacts or addresses tied to a defined record type, not free-text fields. Check the sending mailbox, reply-to address and any bounce handling before launch. Test each template with a small internal recipient list, and confirm how unsubscribe and consent status are respected for campaign email.

Credentials for external calls

Workflows that call an ERP, marketing platform or telephony system need credentials that the SuiteCRM server can use but no user can read back. Store API keys and secrets in server-side configuration with restricted file permissions, not inside workflow fields or templates that editors can view. Give each integration its own credential so it can be revoked without affecting others, and agree a rotation schedule with the owner of the external system. The integration sibling topic covers authentication design in more depth.

Respecting security groups and roles

A workflow that updates records in bulk can reach records its owner should never see if it runs without security group filtering. Check that each rule's target module and record selection respects the same security groups and roles that govern manual access. Test with a user from each restricted group to confirm that rules do not move, reassign or expose records outside their scope. Review these checks after every role change, because a new group can alter what an existing rule touches.

Logging and reviewing automated actions

Automated changes often leave no visible trace in the user interface, which makes incidents hard to explain. Confirm what audit history SuiteCRM records for workflow-driven field changes and sent email, and where application and web server logs are kept. Set a review schedule for the service accounts and recent workflow changes. Retention periods for these logs are a decision for your own policy, so confirm them with your compliance team before relying on them as evidence. For login and access controls, see the SSO and security hardening topics.

What to monitor, back up, upgrade and document after automation goes live

Once workflows are live, the recurring work is watching what they do, not building more of them. Check scheduler job runs and failed actions on a fixed cadence, because a rule that stops firing usually fails silently: a lead is not assigned, a follow-up email is never sent, or a case escalation never happens. Review email delivery and bounce patterns as well. A rising number of bounces from one template or one campaign list usually points to a broken address source or a sending domain problem, not to the template itself. Confirm with your administrator where failed scheduler jobs and bounce data are visible in your installation and who receives those alerts. Do not assume a quiet inbox means the automations are healthy.

Back up the database and files before you change any workflow, email template or scheduler job. A workflow edit can alter records at scale, and rolling back a bad rule is far harder than restoring a copy taken beforehand. Pair each backup with a note of the change being made. Patch releases carry security and bug fixes only, with no new features or database changes, so automations rarely need retesting for them. Minor 8.x releases, which arrive roughly every eight weeks, and any PHP or database version change are different. Retest each automation on a staging instance against the new version before production, and treat the SuiteCRM 8 compatibility matrix as part of that test plan.

Keep a register of every rule, with its owner, purpose, trigger and last test date. The register is what lets a new administrator or an auditor understand why a workflow exists and whether it still works. Include scheduler jobs, email templates, campaigns and any custom code those rules depend on, and record which rules are workflows and which are custom code, since the two are tested and upgraded differently. Assign a named owner to each entry and set a review date tied to each minor release. When an owner leaves, the register shows which rules have no one accountable for them. Ask your implementation partner to deliver the register as a handover item, and confirm who maintains it after go-live.

SuiteCRM workflow automation questions buyers ask before hiring help

How much effort do a typical set of SuiteCRM workflows take?

Effort depends less on how many workflows you want than on how many triggers, conditions, branches and external systems they touch. A lead assignment rule with a follow-up reminder is small. A workflow that updates records across several modules, depends on custom fields and calls an outside system is much larger. The main drivers are the number of approval steps, how clean the data in the condition fields is, how many security groups must see the results, and whether email templates and scheduled jobs are involved. Ask any partner for an itemized quote that lists each workflow with its trigger, conditions, actions, owner and test cases. That list makes the cost comparable across quotes.

Can our own team build SuiteCRM workflows without outside help?

Yes, a team with a SuiteCRM administrator and someone who knows the sales or service process can build simple workflows, especially when a staging instance and a documented change process are in place. Outside help adds the most value when the logic is complex, when workflows touch sensitive data or access rules, or when you need a repeatable build that another administrator can maintain. Check that your administrators have hands-on experience with the SuiteCRM 8 interface, because SuiteCRM 7 knowledge transfers only in part. A useful test is whether someone on your team can explain each rule and how to disable it safely.

What do business owners and admins need to provide?

Business owners provide the process itself: the stages, who makes each decision, the common exceptions, the service levels the team actually tracks, and sign-off on test results. Administrators provide staging access, the field list and data definitions, role and security group settings, the sending domain for email, and access to the scheduler. Without a named approver for each workflow, changes stall during testing and the build drifts from the real process. Ask a partner to confirm these inputs in writing before work starts, and to name who signs off each workflow before it goes live.

How long does a first set of automations take to stabilize?

There is no fixed duration, because stabilization depends on what happens after go-live. The drivers are how many processes change at once, how often the rules are revised in the first weeks, whether users work around the automations, how reliably scheduled jobs run, and whether email reaches recipients as expected. Stabilization usually means logs and user feedback have stopped producing fixes for a sustained period. Ask any partner for a stabilization plan with clear exit criteria, such as which errors must be cleared, which reports must be checked and who decides when the system is accepted.

Do SuiteCRM workflows survive a SuiteCRM 8 upgrade?

Workflows built with supported configuration usually carry over, but survival is not automatic, so each one needs a retest. SuiteCRM 8 minor releases arrive roughly every eight weeks, while patch releases contain only security and bug fixes, with no new features or database changes. Minor releases can still change behavior that your workflows depend on, such as field handling, scheduler behavior or email output. Test every workflow, scheduled job and email template on staging before each upgrade, and record the results. Check the SuiteCRM LTS and release lifecycle page for the current release plan before you schedule an upgrade window.

When is custom code a better route than workflows?

Use workflows for declarative rules: field updates, notifications, record assignment, timed reminders and simple escalations. Custom code is the better route when the logic needs calls to external systems with error handling, multi-step calculations, data transformation, or behavior that must be version controlled and tested like application code. The trade-off is cost. Custom code takes more effort to build, document and review at each upgrade, and it needs a developer who can maintain it after handover. Ask whether the rule could be expressed in standard workflow actions first. If it cannot, weigh the ongoing maintenance cost against the business benefit before committing to code.

How DeployOpen scopes, builds and hands over SuiteCRM automation

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For SuiteCRM workflow automation, we start from a written list of sales and service processes, build each automation in the client's own SuiteCRM environment, and hand over the configuration with the records needed for their team to run it.

How we scope

  • We map each sales and service process to a trigger, conditions, actions and an owner before anything is built.
  • We list which automations belong in SuiteCRM workflows and which need custom code, with the reason for each choice.
  • Engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts.

How we build

  • We build workflows, scheduler jobs, email templates and campaigns in a staging SuiteCRM 8 environment first.
  • We test each automation against sample records, including edge cases such as duplicate leads and missing fields.
  • Custom code is kept separate from core files so that it can be reviewed and retested before each SuiteCRM upgrade.

How we hand over

  • We document every workflow with its trigger, owner, dependencies and the data it changes.
  • We walk through the configuration with administrators and confirm that failed jobs and bounced emails are visible to them.
  • We deliver the test results and a change log so your team can review the automation with its own compliance and security staff.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • We can retest automations when SuiteCRM minor releases arrive, which come roughly every eight weeks in the 8.x line.
  • Support scope, response expectations and retest frequency are set in the written agreement, so confirm them when you request a quote.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.