OBLYTECH Logo
OBLYTECH Logo

Automation Dependency Map for Shared Objects

An automation dependency map lists the flows, triggers and validation rules that read or write a shared Salesforce object, in the sequence they fire. Before you change one item, you check it against the rest of that list. Update the map whenever automation on the object changes.

What an automation dependency map records

The map is a table of automation items grouped by the object they act on. Begin with an object that more than one team touches, such as Account, Opportunity or Case. List each item that reads from that object, writes to it, or depends on a field it changes. Automation on related objects belongs on the map just when it changes a field on the shared object.

Write the scope down before the inventory starts. A one-line statement such as “this map covers automation on Opportunity that writes to stage, amount or owner” keeps the first pass from growing into a full audit of the org. Anyone reading the map later can then tell whether an item was left out on purpose.

Each row should hold five things: the item name, its type (flow, trigger, validation rule or other custom logic), the fields it reads, the fields it writes, and the named owner. Add the date of the last change. A row without an owner tends to be the one nobody checks when something breaks.

Shared fields are where conflicts start. Two items that write the same field under the same event are the first pair to examine, even when their names suggest unrelated work. A field that also feeds a report or a dashboard adds a further layer, because a change to the field can alter a view that the build team did not open.

Customer success reporting makes this concrete. A health view built on Account fields depends on whichever items write those fields, as covered in customer success account health views. Add those downstream views to the map as their own rows so they are checked in each review.

Building the inventory for a shared object

Start with a list of the automation that is active on the object, then add the inactive items in a separate section. Pull the list from the org itself rather than from memory. Items added during an earlier project are the ones teams tend to forget, and they can still be running.

For help planning this work, see Salesforce implementation.

Work through the export in this order:

  1. Record each item’s name, type and status, active or inactive.
  2. Read each item and list the fields it reads and the fields it writes.
  3. Mark any field that appears in more than one item’s write list.
  4. Note the event that starts each item, such as a record being created, edited or deleted, or a scheduled run.
  5. Note which items call or hand off to other items, since a change to the called item reaches the caller.
  6. Ask each owner to state the item’s purpose in one sentence, and flag any item where no owner can answer.

An inventory often turns up at least one item that nobody on the current team recognizes. Treat that as a finding. Leave the item in place and mark it for review. Removing an item whose purpose nobody can state carries more risk than a short delay in review.

Working out execution order and conditions

An item list shows what touches the object. Execution order shows what happens when a user saves a record, and the order decides the outcome when two items set the same field. Confirm the sequence on your own instance and release. Treat any order you recall from memory or from an old diagram as a starting assumption to test, not a fact to build on.

For each shared field, write down the conditions under which each item writes it. Entry conditions cause many surprises. An item that writes a status when an amount changes behaves differently from one that writes the same status when a stage changes, even though both appear in the backlog as status updates.

Record the sequence as a numbered list for each object and event pair. Mark any point where one item saves the record again, because a second save can start items again, depending on how each item is built. That pattern can cause loops, and the map is where it becomes visible.

Fields written by more than one item

Shared writes need a decision. Name the item that is authoritative for the field and change the others to read it instead of writing it. If that decision cannot be made, the field may need to split into two fields, one per purpose. Splitting carries its own cost, so record the reason in the map.

Items that call other items

Call chains hide dependencies. An item that hands work to a second item looks self-contained in a flat list, but a change to the second item changes the result of the first. Draw each chain as an indented list in the map, one level per hand-off, so a reviewer can see the depth without opening each item.

Checking a proposed change against the map

The map pays off when someone proposes a change. The requester fills in a short check before anyone builds. Small changes need less ceremony, but each affected row still needs its owner to read the check. The check should name the expected outcome for each matching row, so the owner has something specific to confirm or reject.

Use this sequence:

  1. Name the object and the field or behavior that will change.
  2. Filter the map for each row that reads or writes that field, plus each row that reads a value the change will alter.
  3. For each matching row, write what the item does after the change.
  4. Check whether any matching row fires on the same event as the proposed change, and whether the change would start it again.
  5. Send the list to each owner and hold the release until each one replies.

Test the changed path with records that reach each branch you listed. Test data that covers only the main stage tends to miss the conditions that cause trouble. Those conditions are the reason the map exists, so the test records should be drawn from the rows, not from the happy path.

Changes to sales stages are a clear case for this check. Teams working through stages, approvals and handoffs can compare the map against their process notes, or start from the sales process automation review before they settle the order.

Keeping the map current

A map that was accurate last quarter drifts as soon as the next project starts. Put it under change control with the rest of the configuration notes. Update it in the same change that adds, edits or removes automation on the object, not in a tidy-up afterwards.

Review the map on a fixed schedule as well. A quarterly review with each owner is a reasonable starting point for many teams. Use the review to remove rows for retired automation, to confirm the sequence for items that changed, and to check that each owner is still the right person to answer for the row.

Larger programs with several teams writing to the same objects need one named maintainer. That person does not write each row. They keep the map consistent, chase replies, and decide which team owns a disputed field. Teams that want to hand this upkeep to a standing group can look at dedicated Salesforce delivery teams as one option.

Teams mapping several objects at once can start from the Salesforce services overview to see how the pieces relate before they widen the scope.

Questions about maintaining a dependency map for shared objects

Who should own the dependency map?

One named maintainer should own the file, usually someone on the delivery side who sees changes before they are built. Each automation owner remains responsible for their own rows. The maintainer keeps the rows consistent and escalates disputes over shared fields.

Do single-team objects need a map too?

Not at first. An object that a single team writes to can keep its notes in that team’s own documentation. Build the map once a second team starts writing to the object, or once an item on it feeds a report another team relies on.

What should happen to an item whose purpose is unknown?

Keep the row, mark it as unconfirmed, and leave the item active until the owner or the change history explains it. Record the date you flagged it so the next review has a clear starting point.

How should vendor packages appear on the map?

List package items with the package name as the owner, and mark them separately from in-house items. Check what the package writes on your instance by reading its items, and note the installed version, because an upgrade can change what it writes.

Does the map replace testing?

No. The map tells you which paths to test and which records to use. The changed paths still need to run in a non-production environment before release, and the results should be recorded against the rows they cover.

How much of the map does a new team member need to read?

Start with the rows for the fields that person will change. Read the sequence notes for the events they touch, then skim the rest. A new team member who reads the full map before a first change tends to lose the thread, so the scoped read is the better starting point.