OBLYTECH Logo
OBLYTECH Logo

Environment Purpose Map for Salesforce Delivery Teams

An environment purpose map is a register that lists each Salesforce sandbox and production org, states what it is for, names the team allowed to change it, and records how it gets refreshed. Keeping that register current helps stop one team’s test configuration from overwriting another team’s build.

What each entry in the map should record

Give each environment one row or card. The minimum set of fields is:

  • Environment name and type, written the way the org list shows it, so a reader can match the map to the org without guessing.
  • Purpose, one sentence that says what the environment is for and what it is not for.
  • Owning team and named contact, with a second contact for when the first is unavailable.
  • Change authority, meaning who may deploy metadata, who may edit configuration through the setup interface, and who may change test data.
  • Data source and refresh rule, covering where the data came from at the last refresh and who is told before the next one.
  • Expected release or branch, so the team can see which build the environment should hold.
  • Review or retirement date, the point at which someone checks whether the environment still earns its place.

Assigning one purpose to each environment

Overlap problems often start with an environment that has two jobs. A sandbox used for developer experiments and for user acceptance testing can be refreshed whenever a developer wants a clean slate, and the testers then lose their scenarios partway through a cycle. Work through the org list in this order:

  1. List each org and sandbox the business can see, including ones created for a project that finished months ago.
  2. Ask the team that last used each one what it is still for, and write the answer down in their words.
  3. Give each environment one primary purpose. Mark any environment that needs a second purpose as a conflict to resolve.
  4. Retire or rename environments whose purpose cannot be stated in one sentence.

The purposes that usually recur across delivery programs are development, integration testing, user acceptance testing, training and production. Name each environment after its purpose, such as UAT-Sales-Q1, so anyone reading the org list can tell what it is for before opening the map.

Deciding who may change each environment

Separate three kinds of change, because they carry different risks. Metadata changes alter how the org behaves for anyone who signs in. Configuration changes made directly in the setup interface are also metadata changes, and they typically bypass the deployment record. Test data changes affect the records a tester creates or edits. A line that says “developers can change this environment” is too vague to enforce, so name a group for each kind.

Access follows the same split. Give deploy rights to the release owner and the lead developer for that environment, and give record editing to testers through the roles they already hold. Where someone holds broad administrator access, note that in the map so nobody assumes the access is limited to one project. The grouping questions in permission set design for small teams apply directly here, because simpler permission groups are easier to check against a change authority column.

For help planning this work, see Salesforce implementation.

Handling direct edits made to unblock a test

Sometimes a tester has to change configuration to get a test running. Record that change in the environment’s log section of the map, then copy it back to the development environment as soon as the test is done. Otherwise the next deployment may overwrite the fix, or carry an unreviewed change into production. Treat each direct edit as an exception with a named owner and a date.

Setting refresh rules that protect in-flight test work

A refresh overwrites the contents of a sandbox, which makes it one of the riskiest routine events for another team’s work. Write the refresh rule into the map before the first refresh. Make it specific: who is told, how much notice is given, which records or configuration must be exported first, and who signs off that the environment is ready for use again.

Before each refresh, work through a short checklist:

  • Ask each listed team whether it has test cases, data loads or configuration changes in progress.
  • Export or document any configuration that exists in that sandbox alone, and check the map’s log for direct edits.
  • List the integration endpoints and scheduled jobs the sandbox runs, and plan how each will point at a test system after the refresh.
  • Record the refresh date and source in the map, so the next person can see how old the data is.

After the refresh, hold off on batch jobs and outbound messages until the post-refresh checks are finished. The checks should include a review of connections that leave the sandbox and a scan of active automation, because those are the items that can reach real customers if they still point at production.

Sequencing changes between environments

The map also records the path a change takes. A workable order is development, then integration testing, then user acceptance testing, then production. The rule that matters is that a change moves forward in sequence. When a production fix is needed, record it in the map, apply it to a lower environment, and reconcile the metadata so the next deployment does not reverse it.

Use the map to answer three questions before any deployment is scheduled:

  • Which environment holds the release under test, and is it the one the test plan names?
  • Has each change in the release reached the environment one step before the target?
  • Does any environment hold a change that is missing from the source for this release?

Testing and checking the map itself

A map earns its place when it matches the org. Check it on a fixed schedule, such as at the start of each release cycle, against the actual org list and a current read of each environment’s configuration. Ask each named owner to confirm three things: the purpose still holds, the change authority is still correct, and the refresh rule is the one in use.

Confirm that each named contact still works on the team. Confirm that each environment on the map appears in the org list, and that each org in the list appears on the map. Spot check two or three permission assignments per environment against the change authority entries.

Expect three common failures. The first is an environment nobody claims, which should get an owner or a retirement date by the next review. The second is two teams that each believe they own the same environment, which needs a decision from the person who owns the release, not a negotiation between the teams. The third is drift, where an environment holds configuration the map does not describe. Compare the two, then either update the map or revert the environment.

Reporting the map to the delivery team

Review the map in the same meeting where the release plan is reviewed, not in a separate document. The report should answer four questions: what is changing, where each change is being tested, which environments are due for refresh, and which environments lack an active owner. Keep dated copies of the map so that a later question about what an environment held in March can be answered.

For the wider range of Salesforce work on this site, start at the Salesforce services section.

Release timing differences to account for

Environments do not always sit on the same release as production. If an environment holds a different release from production, a test passed there says less about production than it appears to. Record the release each environment holds next to its entry, and compare it with production before a test cycle is planned.

Questions about ownership and environment changes

Who should own the map when there is no release manager?

Assign one named person from the delivery team as the map owner, even if that person is not the release manager. The owner keeps the register current and collects confirmations from each environment’s contact. In a small team, an operations lead can hold the role, but the owner needs the authority to refuse a change request that conflicts with the map.

What happens when a new project needs an environment that fits no purpose on the map?

Add the purpose to the map before the environment is requested. A new purpose is a small edit to the register but a large change to the org, so the request should name the owner, the expected life of the environment and its refresh rule. If the purpose overlaps an existing environment, extend that entry instead of creating a second one. A team without a standing owner for this kind of coordination can look at the dedicated Salesforce delivery teams page for one way to fill that gap.

Does the environment map replace a deployment log?

No. The map records what each environment is for and who may change it. A deployment log records what was moved, when and by whom. Each answers a question the other cannot, so keep both and cross-reference them by date.

What should the record hold when an environment is retired?

Record the retirement date, the date and source of the last refresh, and the name of the person who approved the retirement. Confirm that no integration or scheduled job still points at the environment before removing its entry. Remove the entry from the map after the org list no longer shows the environment.

Can a refresh go ahead while some tests are still open?

It can, but waiting for a clean finish is rarely realistic on a busy program. Agree on a cutoff date instead, after which the refresh goes ahead. Tests still open at that date should move to another environment or be rerun after the refresh. Record the cutoff and the decision in the map so testers are not surprised.