Pick one record-triggered entry point for each Salesforce object and keep it there. Choose either a record-triggered flow or an Apex trigger, then route all record-change logic through that choice. Mixing both on the same object splits the order of work across two systems and turns a simple field update into a guessing game.
Why one entry point per object matters
When a Salesforce object has several record-triggered automations, nobody can say with confidence what runs when a record is saved. A flow may set a field that an Apex trigger then reads, or a trigger may update a related record that fires another flow. Each piece can pass its own tests, and the combination still fails in production. A single entry point gives the team one place to look, one order to reason about and one set of conditions to review when a field changes.
The commitment matters more than which tool you choose. Record-triggered flows and Apex triggers are both capable. The trouble starts when both run against the same object and event without a deliberate decision about which one owns the logic. Write that decision down as a design choice. Otherwise it drifts in over several release cycles, one request at a time.
What mixing flows and triggers does to execution order
Salesforce does not give you a guaranteed order when several triggers respond to the same object and event. A flow and a trigger on one object can run in an order that changes after a metadata update or after someone adds a step to an existing automation. The result is non-deterministic behavior: the same save produces different outcomes depending on which automation happened to run first.
Debugging suffers too. A support engineer reading a debug log has to rebuild the sequence across two tools, and flow interviews and Apex transactions show up differently in the logs. A loop between them is slow to trace, because the cause and the symptom sit in different tools. The cost appears as slower fixes rather than as one visible failure, which is why teams tend to tolerate it longer than they should.
Treat mixed coexistence as a temporary state you accept while you plan a cleanup. It is not the design you keep.
Choosing between a record-triggered flow and an Apex trigger
Choose the entry point based on what the logic needs, then commit to it for the whole object. A record-triggered flow suits field updates, simple related-record changes, notifications and logic that administrators need to read and change themselves. An Apex trigger suits work that depends on richer data structures, heavy looping over collections, or behavior the flow tooling does not reach.
Some capabilities are limited in flow, so check them before you commit. Record-triggered flows do not run in the after-undelete context. Flow also has no native map or set data types, so logic that works through keyed lookups across a large set of records is often clearer in Apex. If your object needs either of these, an Apex trigger is usually the more honest choice. A flow-based workaround will function, but it tends to be harder to read six months later.
If the same object also has to accept integration traffic, the way validation rules interact with those calls matters. The guide on validation rules that do not break integrations covers that side of the decision.
Once you choose, write the decision on one page for the object. Record the entry point, the reason and the date. That record is what stops the next developer from adding a second entry point without noticing.
Moving an existing mixed object toward one entry point
Most organizations that have this problem did not plan it. A practical route starts with an inventory. List every flow and every trigger on the object, the events each one responds to, the fields each one reads and writes, and who owns it. Density matters at this stage. An object with a few small automations usually moves cleanly into a flow. An object with several large flows may need splitting before anything moves. An object dense with Apex logic usually consolidates into the trigger.
A sequence that keeps the save path working
- Freeze new automation on the object while the inventory is built, so the target does not move underneath you.
- Move the lowest-risk logic first, one piece at a time, and test each step in a sandbox with a bulk data load.
- Retire the old automation only after the new one has run through a full release cycle without incident.
- Remove the old logic in the same change that records the final entry point, so the object does not carry both for longer than necessary.
Splitting a large flow is often the first real step. A flow that handles five jobs on one object is hard to test and easy to break. Splitting it does not settle the order question by itself, though. Keep one entry point for the object, then organize the work behind that entry point into smaller, named pieces.
For help planning this work, see Salesforce implementation.
Keeping changes traceable after consolidation
Once one entry point exists, make its behavior easy to follow. Give every flow and flow element a description that states its purpose, not just its name. Add Apex comments that explain why the code runs in this order, rather than restating what the next line does. Describe the trigger metadata in plain words so a reviewer knows what each entry point is for without opening the code.
Put the automation under source control so each change has an author, a date and a reason in the commit history. Flow Trigger Explorer shows the flows on an object in one list and lets you set their execution order. Check that list before you add any new flow to an object that already runs one. If you need to skip automation for a data load or a migration, use a bypass tied to a custom permission or a metadata switch, and document where each bypass applies. A bypass with no owner and no documentation becomes the next source of unexplained behavior.
Handling work that belongs after the save
Some work should not hold up the user’s save. Moving it out of the triggering transaction gives you higher limits, and it lets the user keep working while the rest runs. Salesforce provides asynchronous options for this. An async path flow handles work on its own timing, outside the user’s save. A scheduled path runs work at a time set relative to a date on the record.
Asynchronous work does not change the single-entry-point rule. The decision to hand work off belongs to the same owner who designed the entry point, so the handoff shows up in the same list. Queueable, batch and scheduled Apex each carry their own limits. Calling batch or scheduled Apex directly from a trigger is usually a pattern to avoid. Queueable jobs enqueued from a trigger also need care, because they count against per-transaction limits. For the trigger patterns that stay safe under bulk loads, see the bulk-safe trigger checklist. For the limits that matter once work is deferred, the governor limits guide for admins sets out the numbers to plan around.
Asynchronous processing carries no response-time guarantee, so do not use it for anything a user must see before continuing. Plan for outages as well. If a downstream system is down, deferred work can pile up, so build retries and a way to detect work that was never completed. Where the deferred work calls outside systems, the Salesforce integration architecture overview describes how to design those handoffs.
Questions about competing automation on one object
Can a flow and an Apex trigger run on the same object?
Yes, the platform allows it. The practical question is whether the order of their work is predictable. When both respond to the same event, the order between them is hard to predict from the code alone, so treat the coexistence as a problem to plan out, not a permanent setup.
Does one entry point mean only one flow per object?
No. It means one primary entry point that decides which logic runs. A record-triggered flow can call subflows and actions to keep the work organized into smaller pieces. The rule concerns who starts the work, not how many pieces the work is split into.
Which tool should a small team choose when it is unsure?
Start with a record-triggered flow if the logic is mostly field updates, simple related-record changes and notifications that the admin team must maintain. Move to an Apex trigger when you hit a limit of the flow tooling, such as the after-undelete context or same-record updates from invocable Apex. Make the decision once and write it down.
How do you tell which automation ran first when a save behaves oddly?
Start with the consolidated list of flows on the object and the execution order set there, then compare it with the debug log for the save. Look for the first automation that changed a value the later one read. If you find two automations writing the same field, that is usually the root cause, and the fix is to bring them under one entry point.
Is it worth consolidating an object that works today?
It depends on how often the object changes. A stable object with one flow and no trigger has little to gain. An object that gets new automation every quarter, or that already mixes both tools, is where consolidation pays back, because each new change otherwise adds another ordering question for the next person.