Back to blog
SAPP Blog

Rerunning a Bitrix24 automation rule: prevent duplicate actions

A deal can reenter a stage after it is sent back or its data is corrected. If the automation rule treats first entry and reentry alike, it can create duplicate tasks, emails, and documents.

Step 1

Define the goal and scope: idempotent automation rule execution

A deal can reenter a stage after it is sent back or its data is corrected. If the automation rule treats first entry and reentry alike, it can create duplicate tasks, emails, and documents.

Document the records, roles, and scenarios included in the change. List everything outside the first phase separately so the participants understand the scope.

If the change affects multiple departments, request automation rules and triggers: agree on the workflow and verification criteria before configuring it.

Connect this rule with the preceding article in the series: Bitrix24 CRM trigger did not fire: step-by-step diagnosis. This link preserves the shared context without duplicating the task.

Step 2

Gather source data and assign an owner

You need the triggering event, completion flag, retry rules, and the return scenario. For each input, record its source, as-of date, and the employee who confirms the value.

Decision maker: the automation owner. Participants can prepare the data and test the scenario. Assign a single final owner in advance.

Step 3

Document the workflow so every transition is visible

Break the workflow into observable steps: record the original fact, check the conditions, make the change, verify the result, and send exceptions for review.

At every step, keep the reason for the decision. This makes it possible to distinguish the standard action from a manual workaround and reconstruct the workflow after a pause.

Case Study

After creating a task, the automation rule records its ID or a completion flag. If the deal reenters the stage, the condition checks whether an active task already exists.

Step 4

Document risks, exceptions, and how to stop safely

Main risk: reentry into a stage creates a duplicate task or message. Specify how to detect it before making changes at scale and who decides whether to stop.

For disputed cases, keep the original data and assign a separate review status. Preserve uncertainty and history in the report instead of filling the gap with a fictitious value.

Step 5

Check the main scenario and one exception

Evidence of completion: a test of initial entry, return, and reentry. Another employee should be able to repeat the check using clear steps without relying on the person who configured it to remember them.

Test the successful path, a case with incomplete data, and a repeated action. After a correction, recheck the same record and a related record for unintended effects.

Use acceptance test scenarios for automation for a single record of the outcome.

Continue with “Bitrix24 CRM data quality: rules for checking records».

Control checklist for “idempotent automation rule execution”

VerificationEvidenceAction if a deviation is found
VerificationScope and ownerEvidenceRoles and decision are documentedActionReturn for clarification before configuration
VerificationMain scenarioEvidencea test of initial entry, return, and reentryActionFix the cause and retest
VerificationExceptionEvidenceAn owner and review deadline are assignedActionTreat the scenario as unsuccessful

Checklist before launch

  • The objective of the change describes an observable outcome
  • The scope and affected records are listed
  • A single owner is assigned for the final decision
  • Risk checked: reentry into a stage creates a duplicate task or message
  • Verification evidence and the rollback method are saved

Frequently asked questions

Who should approve the rule?

the automation owner approves the intended workflow and acceptance criteria. The administrator confirms technical feasibility and configures it.

Can I apply the change to the entire database at once?

Test a limited sample and one exception scenario first. Apply a change in bulk only after verifying the result and the recovery plan.

What is considered completion?

Verify the result in use after saving the settings: a test of initial entry, return, and reentry, no critical deviations, and a clear next check.

Need help with Bitrix24 settings?

We’ll review your current process, propose a clear workflow, and configure it with only the steps you need.

Analytics and reporting in Bitrix24

Tell us what you want to configure in Bitrix24. Do not paste passwords and access keys.