GTM Systems
Retire redundant Salesforce automation in stages
Inventory Salesforce automation by business outcome, test normal and rare paths, and retire redundant writers in smaller releases.
· 8 min read
- InventoryFind the active writers and what they change on Closed Won.
- RehearseTest the normal booking, amendment and replay.
- ReleaseCheck the active versions and first production outputs before the next wave.
Two automations can open an onboarding record when a deal closes. Implementation sees two kickoff assignments for one customer, while a different customer has none. Start the cleanup with the booking IDs behind those assignments. A smaller flow inventory tells you little about who will pick up the next deal.
Identify one business result and all of its writers
Start with a measurable result. The example uses a complete Sales-to-Implementation handoff when an Opportunity enters Closed Won. Inventory the automations that can set its owner, create onboarding work, or send a notification. Find where the transaction starts and which records each step writes. Include the bulk import and API routes that sellers never see.
Build the inventory from Salesforce and your release history
In Flow Trigger Explorer, inspect Opportunity for each operation and save phase. Check Apex triggers, scheduled work, integration jobs and old workflows outside that view. Record active version, entry criteria, fields written and a named owner. Use Setup Audit Trail and prior commits to identify recent changes. A quiet log window can miss a quarter-end path, so ask the business owner for the last example and reproduce it in a sandbox.
Open the details for each candidate flow and write down its active version. An asynchronous path can run independently of another asynchronous path, even when Explorer lists one first. If both can create a kickoff, changing their display order leaves the duplicate possible. In Setup, open Time-Based Automations and filter by flow name and Opportunity to identify pending follow-ups. Record which customer and due date each follow-up covers before replacing its writer.
Mark what the team can retire and what needs a replacement
Group components by output. If two paths create the same onboarding task, decide which owns it and how repeat actions are recognized. Preserve a named path for rare records that still matter, such as an amendment that bypasses standard onboarding. Keep the prior active versions and record which workflows depend on their side effects.
Prove the replacement with comparable records
| Case | Sandbox input | Acceptance evidence |
|---|---|---|
| Normal booking | A salesperson closes a deal with a valid onboarding owner. | One onboarding record under the intended owner and one expected notification. |
| Rare amendment | An amendment closes against an existing onboarding record. | The existing record stays in service. No duplicate onboarding record is created. |
| Bulk close and replay | Upsert a representative batch, then apply the same source changes again. | Each eligible deal creates the expected output once. Error rows can be identified by source key. |
Compare by booking ID before signing off
In this sandbox example, Implementation expects one new kickoff per first booking. Amendments should keep their existing kickoff. Seed 24 first bookings and six amendments with known booking IDs, owners and existing kickoff IDs. Close them in a batch. After the asynchronous work finishes, join the results back to all 30 inputs. Start with the input list so a booking with zero results stays visible.
| Input | New kickoffs observed | What the reviewer sees |
|---|---|---|
| 22 ordinary first bookings | 22 | One per booking, under the expected owner. |
| First booking B-023 | 2 | Two kickoff IDs point to the same booking. |
| First booking B-024 | 0 | No kickoff reached Implementation. |
| Six amendments | 0 | All six retain their original kickoff IDs. |
Should the team release if the total is exactly 24?
Hold the release. Only 22 of the 24 first bookings produced exactly one kickoff. Trace the two outputs for B-023 to the automation that created each. For B-024, check the transition into Closed Won, its record type, the owner lookup, and the failed or pending work. A duplicate and a missed booking cancel each other in the total.
Rerun the repaired versions against fresh copies of the same inputs. Require one expected owner and kickoff ID per first booking, the same six existing IDs on amendments, and zero additional kickoffs when the source sends the batch a second time.
Save a Flow Builder test for the entry condition with an initial Opportunity in Negotiation and an updated Opportunity in Closed Won. Add an assertion for the expected decision outcome. Run a separate end-to-end rehearsal with committed sandbox records to inspect related kickoff records, async effects and notifications at the test destination.
Release one behavior change at a time
Activate the replacement and retire its superseded writer as an agreed change set. Recheck the production active versions and first booking outputs. If an output is missing, stop the next wave and restore the reviewed routing or handoff logic. Reconcile records already written during that window before declaring recovery.
Measure what the migration changed
Track the maintained component count alongside the sample record outputs, duplicate work and a consistent save-time measure. The team can review the last group only after the first group’s effects are visible in records. Use the Flow order guide for sequence issues and the Flow and Apex guide for choosing the replacement mechanism.
Keep reading
A normal booking produces one onboarding record. Which amendment case still needs to pass before retiring the old automation?
Check your answer
Close an amendment against an existing onboarding record. Verify that the existing record remains in service and the workflow creates no duplicate.