Sub topic 12
Manual steps after deployment
This chapter assumes you can build, upload, validate and deploy a change set. It also assumes you know the metadata types involved (custom objects, fields, flows, Apex classes, permission sets). A successful deployment does not always leave the target org ready to use. Some settings never travel in a change set, and some components arrive in a state that needs your attention. This chapter covers how to find those gaps and close them.
Why a "Succeeded" status is not the end
Deployment status says that the components in the change set were written to the target org. It says nothing about whether:
- Users can see or use the new components.
- Features that the components rely on are switched on.
- Data that the configuration expects exists.
- Settings that change sets cannot carry were recreated.
You can think of the work in three groups: things you must do because change sets cannot carry them, things you must do because the component arrived inactive or unassigned, and checks that confirm the result.
Settings that change sets cannot carry
Some configuration is not available as change set components. Others are available only in part. The exact list changes with each Salesforce release, so check the "Metadata Coverage" report and the "Unsupported Metadata Types" topic in Salesforce Help before each project. These categories are common sources of manual work:
- Org-wide settings. Examples are some Setup pages that hold single switches, such as certain feature toggles and company-level options. If a setting is not listed in the Add components page, you must set it by hand.
- Data. Change sets move metadata only. Records such as price book entries, custom setting values, custom metadata records you did not add, and reference data must be loaded separately.
- Secrets and endpoints that differ per org. Credentials in named credentials and connected app secrets should be entered in the target org, not copied.
- Scheduled jobs. An Apex class that implements
Schedulablearrives, but the schedule does not. Someone must schedule it. - Email deliverability and similar org controls. These are environment decisions, so set them for each org on purpose.
A useful habit is to keep a checklist in the same record as the change set (for example, a work item or ticket). Each time you add a component in the source org that has a manual companion step, write that step down immediately. Memory fails by the time of the production deployment.
Components that arrive but need action
Some components deploy successfully and then sit unused. Check each of these.
Flows
A flow arrives as the version you deployed. Whether it is active depends on the flow type and the target org's settings. In many orgs, the flow arrives inactive, or it arrives active only if a deployment setting allows it. After deployment:
- Open Setup > Flows in the target org.
- Find the flow and check its status.
- Activate the correct version if it is not active.
- If an older version was active, confirm that the new version replaced it, and that the old version is not still running by mistake.
Page layouts, record types and Lightning pages
A layout arrives, but it is only seen by users who are assigned to it. Layout assignments are by profile and record type, so a new layout often needs an assignment step. Similarly, a new Lightning page needs to be activated as an org default, app default, or app, record type and profile assignment before anyone sees it.
Permission sets and profile access
A field or object can exist in the target org and still be invisible to everyone. Field-level security and object permissions live in profiles and permission sets. If you did not include those, or you included only some of them, assign access yourself. Prefer permission sets to profiles for this, because a permission set can be assigned to specific users without touching everyone on a profile.
After deploying a permission set, remember that deploying it does not assign it. Go to Setup > Permission Sets > Manage Assignments (or use a permission set group) and add the right users.
Validation rules, workflow rules and triggers
Validation rules deploy with their active flag, which means a rule that was active in the sandbox becomes active in production the moment the deployment finishes. This can block users or integrations right away. Before deploying, list any rule that could affect integration users or data loads, and plan to test them afterward. Apex triggers and workflow-style automation deploy in their source state, but double check that the active state matches your intent.
Data that the configuration depends on
If a new flow, validation rule or Apex class expects a record to exist, load it after deployment. Typical examples:
- Records in a custom object that acts as a lookup table.
- Custom setting values that Apex reads.
- Picklist-related reference data stored in records.
Use Data Loader, Data Import Wizard, or the Salesforce CLI. Here is a CLI command that loads a CSV file of records into the target org:
sf data import bulk --sobject Tax_Rate__c --file data/tax_rates.csv --wait 10 --target-org MyProductionRun a smaller test in a sandbox first. A wrong load into production is harder to undo than a wrong deployment.
Checking the result
Verification does not need to be heavy. Work through a short list:
- Confirm the deployment status page shows Succeeded and that every component was deployed.
- Open one record of each affected object and check that new fields appear, in the right layout section, with the right access.
- Log in as, or use "Login As" on, a representative user. Confirm that the new items are visible to the right people and hidden from others.
- Trigger each new automation once with a test record and read the result.
- Look in Setup > Apex Jobs and Setup > Debug Logs if anything fails silently.
You can also compare the org with your source using a manifest. The next command retrieves the components named in a package.xml from the target org, so you can compare them with the source and confirm that they match.
sf project retrieve start --manifest manifest/package.xml --target-org MyProductionThe manifest might look like this:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Invoice__c</members>
<name>CustomObject</name>
</types>
<types>
<members>InvoiceService</members>
<members>InvoiceServiceTest</members>
<name>ApexClass</name>
</types>
<version>61.0</version>
</Package>A retrieve only tells you what the org holds. It does not tell you whether a flow is active or whether a permission set is assigned, so it complements the manual checks and does not replace them.
Common errors
| Symptom after deployment | Likely cause | Fix |
|---|---|---|
| New field does not appear on the record page | Field is not on the layout, or layout is not assigned | Add the field to the layout and check assignments |
| Users cannot see the field | No field-level security | Grant access with a permission set |
| New flow does nothing | Flow arrived inactive | Activate the flow version |
| Scheduled process stopped running | Schedule was never created in the target org | Schedule the Apex class again |
| Integration starts failing after deployment | A new validation rule is active | Adjust the rule or the integration data |
| Apex reads empty values | Custom setting or reference records not loaded | Load the data |
Plan for the next deployment
The best time to reduce manual work is before you deploy. Three practices help:
- Write the runbook as you build. Each manual step is one line, with who does it and where.
- Rehearse in a full or partial sandbox. Deploy to a sandbox that mirrors production, then perform every manual step there. Time the process and correct the list.
- Deploy during a quiet window. Validation rules and automation take effect immediately, so pick a time when few users are active.
If you find yourself repeating the same long list for every release, that is a signal about the tool itself. A later chapter covers limits of change sets and when another deployment tool is a better fit.
Exercise
A change set containing a permission set, a new custom field, a screen flow and a Schedulable Apex class deploys to production with status Succeeded. Users report that they cannot see the field, the flow does not run, and the nightly job has not started. Name the manual step that fixes each problem.
Show answer
Field: assign the permission set to the users, and confirm the field is on the correct page layout, because deploying a permission set does not assign it. Flow: open Setup > Flows in production and activate the deployed version. Nightly job: schedule the Apex class in production, because the class deploys but its schedule does not.
Exercise
Why does a successful retrieve of your manifest from production not prove that the deployment is finished?
Show answer
A retrieve only shows the components stored in the org. It does not show whether a flow is active, whether users have the permission set assigned, whether a job is scheduled, or whether reference data was loaded. Those need manual checks.