SuiteCRM 8 backend record validators

Backend record validators stop an invalid record from being saved, whatever client sent the request. This page explains how they work in SuiteCRM 8.10, when to use them instead of async validators or save handlers, and what to confirm before building one.

On this page

When SuiteCRM 8 backend record validators are the right place for a business rule

Choose a backend record validator when a business rule must hold on every save, whichever client makes the request. A typical case is a required combination of fields, such as a close reason that must be filled in when an opportunity is marked lost, or a value check that a sales or service team cannot skip. In SuiteCRM 8.10, a backend record validator is server-side code that runs as part of saving a record, so it applies to the API as well as the Angular interface. Before you build one, confirm in the 8.10 developer documentation how the validator is registered, what record data it receives, and how a failed check is returned to the caller. Those mechanics are the basis for every design decision that follows.

The key difference from a check in the interface is who it stops. A rule that exists only in the Angular front end guides people who use the screen, but it does nothing for an integration, a script or an API v8 call that writes records directly. If your rule protects reporting, billing or compliance data, a front-end check leaves a gap that a backend validator closes. SuiteCRM 8.10.2 was published on GitHub on July 31, 2026, and the project ships minor 8.x releases roughly every eight weeks. Patch releases contain only security and bug fixes, but minor releases can change behavior around saves, so plan to rerun your validator tests on each minor upgrade and treat that test set as part of the release process.

Use a validator for rules that can be decided from the record being saved, and keep the decision in one place. Rules that depend on slow external lookups, or that should not block the user while they wait, belong in other mechanisms covered elsewhere on this page. Before you start, ask your team to list each rule, the modules it touches, and which channels write to those modules today. That list shows whether a validator is enough, whether a front-end hint is also needed for usability, and how much regression testing each rule will require after every upgrade.

Backend validators, async validators and save handlers compared

This table compares backend record validators with async validators, save handlers, display or field logic and logic hooks. Read each row by asking when the check runs, whether it can stop a write, and whether it runs for direct API calls. Cells that say to confirm depend on 8.10 behavior that you should verify in the release documentation before designing around it. The main takeaway is that only server-side checks on the save path can enforce a business rule for every write path, and only after you have tested that they do.

MechanismWhen it runs and whether it blocks a saveAPI calls and safe usesUpgrade risk and what to confirm in 8.10
Backend record validatorRuns on the server before the write. Can block the save by returning an error. Confirm the exact rejection behavior in 8.10.Expected to cover API v8 writes; confirm. Safe for checks that read only the record and its known relationships.Depends on the extension point used. Minor releases arrive roughly every eight weeks, so recheck the extension point with each one.
Async validatorRuns outside the synchronous save request, typically after the write. Confirm the timing in 8.10.Cannot be relied on to stop a save. Confirm whether API writes trigger it. Safe for slower checks that flag records for review.Depends on the job runner and worker setup. Retest queued checks after every upgrade and confirm worker health.
Save handlerRuns as part of the save lifecycle, around the write. Confirm whether it runs before or after commit in 8.10.Whether it can stop a save depends on timing and error handling. Confirm API v8 invocation. Safe for derived values and normalization.Tied to save internals that can change between minor releases. Keep handlers small and retest them after each upgrade.
Display or field logicRuns in the user interface to show, hide, require or autofill fields before the user submits. Does not enforce rules on the server.Not a control for API callers, so direct API writes bypass it. Safe for guiding users and reducing avoidable form errors.Defined in metadata, so usually lower risk. Confirm the 8.10 record-level logic syntax before copying any example.
Logic hooksRuns on PHP lifecycle events such as before and after save. Confirm which events fire in SuiteCRM 8.Blocking depends on hook type and error handling. Confirm API v8 invocation. Safe for logging and outbound calls with recursion guards.Lives in custom code that must stay out of core files. Moderate risk; retest after each minor release.

How a backend record validator fits into the save request

A backend record validator runs on the server during the save request, before the record is persisted. When a validator rejects the data, the request returns an error to the caller and nothing is written. The client that sends the record, whether it is the SuiteCRM 8 user interface, a third-party integration or a script, receives the same rejection. The point of this placement is that the rule holds no matter which client sent the record, so the business rule does not depend on the browser's form checks being present or being current.

This matters most for integrations and scripts that call the API directly. They never load the form, so any rule that exists only as a front-end check, a required-field marker or a display setting is skipped. An integration that imports leads or updates opportunities in bulk can write invalid combinations, such as a closed stage without a close date, unless the backend rejects them. Save handlers and asynchronous checks sit at different points. A save handler reacts to a record that has already been accepted, and an async check runs after the fact, so neither should be relied on to stop a bad write. Your team should confirm the exact error response shape that a rejected save returns to an API caller, and the order in which validators, save handlers and any post-save processing run in SuiteCRM 8.10, against the 8.10 source code or the SuiteCRM 8 documentation before writing client code that parses those errors.

Where validation sits in a save request

The diagram starts with a client sending a save request to the SuiteCRM API. The request passes through the backend record validator before the save handler writes anything to the database. A rejected request returns an error to the caller and never reaches the database. Async validation runs as a separate path after the save has completed, so it cannot block the write. When you review a rule, check which path it sits on, because only the synchronous path can stop bad data from being stored.

Synchronous validation blocks the save, while async checks run afterward on their own path.

Which business rules suit a backend validator

A backend validator is the right home for rules that must hold no matter which screen, import, API client or integration writes the record. The cards below sort the rules that suit blocking at the API, and each one names what the check costs at save time, what it cannot see, and what to test before it goes live.

Cross-field consistency rules

These compare two or more fields on the same record, such as a close date that cannot precede the created date or a discount that must stay within the approved range for the chosen product line. Because the check reads only the record being saved, it is cheap and deterministic, which makes it the strongest candidate for a backend validator. Test each combination of the compared fields, including blank values, because a rule that passes in the form can still fail when an API client sends a partial update. Confirm how the validator sees fields that were not part of the request.

Required values tied to status

A rule such as a lost opportunity must carry a loss reason only matters when the stage changes, so the validator has to compare the stored state with the incoming state. Save-time cost stays low, but the rule depends on reading the previous value correctly, which is easy to get wrong on creates and on mass updates. Test the transition path (open to closed, closed to reopened) as well as the final state, and confirm whether bulk actions trigger the same check or bypass it.

Data quality rules integrations must respect

Format and reference rules, such as a tax identifier pattern or a mandatory parent account link, protect the database from bad data that a sync job or import can write silently. The trade-off is that a strict rule can make an integration fail its batch, so the team needs an agreed error response before go-live. Test the rule with the exact payloads your integrations send, and record which error codes the integration team will handle.

Rules that depend on external data

A validator sees only what is in the request and the local database. A rule that needs a credit check result, a registry lookup or a value fetched from another system cannot be decided reliably inside the save, and calling the external service from the validator adds latency and a new failure mode to every save. Keep these checks in a separate step, and document which fields the backend validator cannot verify so reviewers do not assume it does.

Permission-sensitive rules

Some rules depend on who is saving, such as a manager override for a discount above a threshold. The validator must read the current user and role, and it must agree with the access control rules already in place, or the record will be blocked for users who should be allowed to proceed. Test each role that can edit the field, including admin accounts that often bypass expected checks, and confirm that the rule does not expose the threshold to users who cannot see it.

How to set up and test a backend record validator on SuiteCRM 8.10

This sequence takes a backend record validator from version check to tested change on SuiteCRM 8.10. It produces a rule proven on staging, a registration made through the documented extension mechanism, and test evidence for UI and API saves that a reviewer can repeat after upgrades.

  1. Confirm the 8.10 build and stack versions

    Record the exact SuiteCRM 8.10 build running on the instance and compare it with the releases published on GitHub, where 8.10.2 appeared on July 31, 2026. Then check PHP (8.2, 8.3 or 8.4), Apache 2.4, and the database (MariaDB 10.6, 10.11, 11.4 or 11.8, or MySQL 8.0 or 8.4) against the SuiteCRM 8 compatibility matrix for that build. The platform owner signs off the version record. This step is done when every component appears in the matrix and the record is attached to the change ticket. If one does not, fix the stack before writing any code.

  2. Clone production into a staging instance

    Build a staging instance that matches production's SuiteCRM 8.10 build, PHP version, web server and database, then copy the production database and files into it. Take a full backup of both before any change, following the migration guidance to test on staging and back up files and the database first. Ask the engineer to confirm that the copy includes custom code under the custom and extension directories. This step is done when a restored backup loads the login page and an existing record opens in staging with the same field values as production.

  3. Confirm the registration point in the 8.10 docs

    Before writing code, read the SuiteCRM 8.10 developer documentation on backend validators and the extension mechanism that registers them. Record the target module, the fields the rule reads, whether the mechanism runs for saves that come through the API as well as the UI, and the format of the error response. The developer confirms each point against the documentation for that exact build, and any point the documentation does not settle is tested on staging. This step is done when a design note lists each point with its source and every open question has an answer.

  4. Write the rule as a pure check

    Write the validator as a check that reads only the record data it needs and returns either a pass or a specific error. Keep it free of side effects: no writes, no external calls and no logic that depends on the server clock. Scope it to one module and one set of conditions, for example (illustrative) an opportunity marked closed won that has no amount. Give each error a message key so translations can be added later. This step is done when the developer runs the check against sample records in a unit test or scratch script and every sample returns the expected pass or fail result.

  5. Register the validator through the extension mechanism

    Place the validator and its registration in the location and format the 8.10 documentation specifies, then run the rebuild or repair step that the same documentation lists for extensions. Keep every change inside the extension location so that later upgrades can carry it forward. Clear the application caches on staging. This step is done when the validator fires on a save in the target module, which shows in the application logs or debug output, and the project's upgrade notes list the file paths and the rebuild step.

  6. Test valid, invalid and edge-case saves in the UI

    Build a test matrix before testing. Include one valid record, one record for each invalid condition, boundary values such as zero, empty and maximum-length inputs, existing records edited into an invalid state, and new records created with the same invalid values. Run each row through the record edit view on staging. For an invalid save, check that the error appears, the form stays open, and the database row is unchanged. For a valid save, check that the record persists. This step is done when every matrix row has a recorded result with a screenshot or log entry.

  7. Repeat the same saves through the API

    Authenticate to the API v8 endpoints using the method in the developer documentation for the build, then send create and update requests with the same payloads used in the UI matrix. For each invalid request, check that the response carries the expected status code and error message and that the database row is unchanged. For each valid request, check that the response reports success. Add one update that changes only a field the rule does not read, to confirm the check ignores it. This step is done when the API results match the UI results row for row.

  8. Confirm the rule stays inside its module

    Save records in unrelated modules and in related modules that share relationships with the target module, and confirm that the validator rejects none of them. Also test the other save paths the team uses, such as imports and mass updates, and record whether the validator runs for each one. Write down any path that is not covered, with an owner for each. This step is done when the test log shows no unexpected rejections and the results are attached to the change ticket for the next upgrade test.

Security and access considerations for validators

A validator decides whether a save is allowed, so it sits inside your security model rather than beside it. The cards below cover what validators do not replace, what they may expose, and how they are tested, logged and changed.

Validators do not replace ACL checks

A validator enforces a business rule on the record data, but it does not decide who may edit the record. Role permissions, field-level access and record ownership still apply to every save. Before go-live, log in as a user with a restricted role, attempt the save, and confirm the permission denial appears before any validator logic runs. Document which roles can see and change each field the validator reads.

Compatibility matrix

Keep validation messages free of sensitive values

A rejection message that repeats the submitted value can expose data to users who should not see it, including values in fields they cannot read. Write messages that name the rule and the field, not the content, for example a message saying a date falls outside an allowed range rather than echoing the date entered. Have a second reviewer read every message string against the field's access level.

Test with integration accounts

Validators on API saves run for every client that writes records, including integration users and service accounts that may hold different roles than people. Create a test case for each integration account that writes to the module, and confirm that its rejected saves return errors the integration can handle. A rule that passes for an administrator can still break a sync job that runs under a narrower account.

Log rejections without personal data

Rejected saves are useful for support and tuning, but a log that stores the full payload also stores personal data. Record the rule name, record type, time, and the account that made the request, and leave out field values and contact details. Confirm with your logging team how long these entries are kept and who can read them, because the retention period belongs to your own log policy.

Put rule changes under change control

A validator that is too strict can stop sales, service or billing work until someone changes the code, so it carries operational risk comparable to a configuration change. Keep rule definitions in version control, require review and a staging test before each release, and record who approved each change. Agree in advance who can disable a rule in an emergency and how that decision is logged.

Confirm behavior for bulk and mass updates

Mass updates and imports may call the same save path as a single record edit, or they may skip parts of it, depending on how your build wires the rule. Test a mass update that includes both valid and invalid records, and check whether the outcome is all-or-nothing or partial. Confirm the result with your own build before relying on it, since a rule that blocks single saves but not bulk changes creates a gap in your controls.

Questions teams ask before building backend record validators

How much effort does a backend record validator take to build?

Effort depends mostly on how many rules you enforce, which integrations write to the same records, and how much testing your environments require. A single validator on one module with clear pass and fail conditions is a small change. Each additional rule adds design, test cases and a review of how it interacts with existing rules and layouts. Ask any partner for a quote that lists the rules, the modules they touch, the test cases and the staging work, so each cost component is visible. Effort is one-time for the build, while retesting after each SuiteCRM minor release recurs.

Can our internal team build a backend record validator themselves?

A team with PHP and SuiteCRM 8 experience can build one, provided it has a developer who understands the record save path and a staging instance to test against. The harder part is usually agreeing on the rule itself with the business owner and proving that the rule blocks bad saves from every entry point, including the API, imports and integrations. Check whether your developers have worked with the SuiteCRM 8 extension and customization model, since validators must survive upgrades and should not depend on edits to core files.

What does the work need from our team?

The work needs a staging instance that matches production closely enough to test real save paths, sample records that include edge cases, a named owner for each business rule who can decide what counts as invalid, and an owner for each integration that writes records. Without the rule owner, developers guess at policy. Without the integration owners, a validator can block a sync job that nobody knew existed. Ask for these inputs in writing before the scope is agreed.

How long does a validator project take?

Duration depends on scope, meaning the number of rules, the modules involved, the number of integrations that save records, and how many environments must be tested before release. A narrow project with one module and one rule can move quickly, while a set of rules that affect several modules and external feeds needs more design and test time. No duration can be stated responsibly before the rules and integrations are listed. Ask for a timeline tied to named milestones such as rule sign-off, staging deployment and integration testing.

Do validators behave the same across SuiteCRM 8.7 to 8.10 and upgrades?

Confirm this in the release notes for each version before you rely on it, because behavior can change between minor releases. SuiteCRM minor 8.x releases arrive roughly every eight weeks, and patch releases contain only security and bug fixes with no new features or database changes. That makes patch upgrades lower risk, but a minor upgrade still needs a staging test of every validator, including integration saves. Record the version each validator was tested on and retest it whenever the core changes.

When is an async check or save handler a better fit than a validator?

Use a backend record validator when a rule must block an invalid save at the API level, so the record never persists. Use an async check when the result can be reviewed after the save, such as flagging records for follow-up, calling a slow external service or running a batch comparison. Use a save handler when the goal is to change or enrich the record during save rather than reject it, such as setting a derived value. Mixing these up causes problems, for example a slow external call inside a blocking validator can delay every save, while an async flag cannot stop bad data from being written.

What should we check before accepting a validator into production?

Check that each rule has a documented owner, a clear failure message for users, and tests covering valid saves, invalid saves and saves from the API and integrations. Confirm that the validator does not rely on modified core files, so it will survive upgrades. Review how it behaves when an integration sends a batch of records, and confirm who receives the rejection and how it is logged. Review the design with your security team if validators depend on role or access data, since permission mistakes can block legitimate work or allow restricted changes.

Limits to confirm in your SuiteCRM 8.10 environment

Validator behavior depends on the exact 8.10.x build, the save paths your users take and the other code already touching each record. The items below are things to confirm in your own environment rather than assume from documentation alone. Confirm them against the SuiteCRM site and the release pages before you commit to a design.

Extension point and signature

Confirm the exact extension point, its supported signature and the class or interface your validator must implement in your 8.10.x build. Validator signatures can differ between patch lines, and a validator written against one signature may be silently ignored or fail at boot on another. Test the registration on a staging copy of the exact build you run, and record the version in your change log so the next upgrade review knows what to recheck.

SuiteCRM home page

Coverage across API endpoints

Check whether the validator runs for every API endpoint that saves a record, not only the standard record create and update routes. Custom endpoints, the Process API and bulk operations may call the save path differently or bypass it. Write a test per endpoint that saves the module, and fail the review if any path stores an invalid record without an error.

Error shape for API clients

Confirm how a rejected save is returned to API clients: the HTTP status, the error body structure and whether field-level detail survives. Integrations and the Angular interface may parse these responses differently. Ask your integration owners to send an invalid record from each client and confirm the message is clear enough to show the user and log for support.

Imports, mass updates and workflows

Confirm whether the rule runs during imports, mass updates and Workflows module actions. These paths often write fields directly or in batches, and a rule that blocks a single save may not block a bulk change, or may block a workflow in a way that stops a scheduled job. Test each path with one invalid row before you rely on the rule as a control.

Performance on large saves

Measure the validator on large saves and on records with many related rows, since validation that queries related modules runs inside the request. Ask whether the check can be scoped to changed fields and whether it issues extra database queries per record. Run the test on a copy of production-sized data before you enable it for bulk operations.

Interaction with display logic and hooks

Check how the validator interacts with display logic, which hides or requires fields in the interface, and with logic hooks already in use. A field hidden by display logic may still be required by the validator, and a before-save hook may change values before the validator reads them. Map the execution order on a staging instance, then document which layer owns each rule.

How DeployOpen works on this

DeployOpen plans, builds, tests and hands over SuiteCRM 8 backend record validators inside your own infrastructure, so the rules that block invalid saves are reviewed by your team before they reach users. We work from a written scope, test against a staging instance first, and document every rule so the people who run the CRM can maintain it after handover.

How we scope

  • We list each business rule that must block a save, with the module, fields and user roles it applies to.
  • We agree in writing which rules belong in backend validators and which stay as display logic or async checks.
  • We confirm the SuiteCRM 8.10 version in use and the PHP and database versions that the build must support.

How we build

  • We write validators as separate, version-controlled code and test them against sample records on a staging instance.
  • We check the error responses returned through the API so that front-end and integration callers receive clear messages.
  • We test permission boundaries, so rules hold for every role that can create or edit the record, including imports and API calls.

How we hand over

  • We deliver a rule register that maps each validator to its business owner, trigger point and test cases.
  • We document the deployment steps, the rollback path and the checks to run after each SuiteCRM minor release.
  • We walk your administrators and developers through the code so they can change rules without relying on us.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
  • We retest validators after each SuiteCRM minor release, since minor releases arrive roughly every eight weeks.
  • We can review validator changes requested by your teams before they are deployed to production.

Sources and further reading

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.