AutoBridge

Test a Permit Automation

Use this guide before you rely on a new or changed permit automation. You run it against a test record, confirm in Run history that it ran once and did the right work, confirm the duplicate guard holds, and then clean up.


Prerequisites

  • A role that can view and edit automations. Without edit permission the Activate Automation switch is disabled and shows You do not have permission to activate this automation.
  • The automation is fully built. Every trigger and action must be configured before it can be activated: Please configure all automation nodes (select triggers and actions) before activating.
  • A way to create a test record for the permit type: the same form your staff or applicants use.
  • A naming convention for test data so nobody mistakes it for a real application (for example, applicant name TEST Applicant and address 999 Test Street).

Send Email steps send real email

When an automation runs, its Send Email steps send to whatever recipient the record points to. Before testing, make sure the test record's applicant or contact email is an internal address you can check.


Steps

1

Publish and activate the automation

Open Automation, find the automation in the list, open the row menu, and choose Configure. In the top bar, turn on Activate Automation. If a banner says You have unpublished changes that haven't been applied to the live automation, select Publish so the version you are testing is the live one.

2

Create a test record that should match

Submit the permit form with test data whose values meet every trigger condition. For a condition-based trigger, also make sure the duplicate guard field (for example, Acceptance Status) is empty. Note the time you saved the record.

3

Find the run in Run history

Back in the automation, select History, then the Run history tab. Select the refresh button. Each run shows a status and a date and time. Use Filter to narrow by Status (All, Success, Failed, Cancelled, Skipped) or to show runs Before a date and time.

4

Check each step of the run

Expand the run. Every trigger and action in the automation is listed with its own badge: Success, Failed, Running, Cancelled, Skipped, or Pending. A failed step shows an Error message under it.

5

Check the record itself

Open the test record and confirm the result you expected: the status field changed, the review task or child record exists and is linked to the parent, and any email arrived in your internal inbox with no unfilled placeholders.

6

Confirm it does not run twice

Edit the test record again without changing the routing values (for example, update a comment) and save. Refresh Run history and the record. No second set of child records should appear and the guard field should keep its value. If duplicates appear, see Troubleshoot Permit Automations.

7

Test a record that should not match

Create a second test record with a different routing value (for example, a different permit category). The automation should not do any work for it.

8

Clean up

Delete the test records and any child records the automation created, or clearly label them as test data so they stay out of reports and queues.


Example

Testing an automation that creates the first review task for a Building Permit.

SettingValue
AutomationBuilding Permit: Submitted, Create Intake Review
TriggerWhen records matches condition
ConditionsPermit Category is Residential, and Intake Review Status is empty
ActionsUpdate Record (set Intake Review Status to Pending), then Create Records (one Intake Review task)
Test recordTEST Applicant, 999 Test Street, Residential
Expected after saveOne run with Successfully run, one Intake Review task, Intake Review Status is Pending
Expected after a second editNo new Intake Review task
Negative testA Commercial test record gets no Intake Review task from this automation

Undo a bad change

If an automation misbehaves after you turn it on:

  1. Turn off Activate Automation (or use Toggle Status from the row menu in the automation list). This stops new runs. It does not undo work that already ran.
  2. Use Run history to see which runs happened and when, then correct the affected records by hand: revert status values and delete wrongly created child records.
  3. If you have unpublished edits you no longer want, select Discard on the unpublished-changes banner. To compare with an earlier version, open History and the Version history tab. The live version is marked Current.
  4. Fix the automation, publish it, and test again before turning it back on.

Common mistakes

  • Testing while edits are still unpublished. The live automation keeps running the last published version until you select Publish.
  • Reusing an old test record whose guard field is already filled. The automation correctly skips it, which looks like a failure.
  • Checking Run history before the run finishes. A run that shows Running... or Pending has not completed; refresh again.
  • Using a real applicant email on a test record.
  • Leaving test records in live queues after testing.

Related guides