Sub topic 8
Reviewing the Inbound Change Set in the Target Org
This chapter assumes you can work in Setup, know the difference between a production org and a sandbox, and have already uploaded an outbound change set from a source org over a deployment connection. Here you work in the target org. You find the uploaded change set, inspect what it contains, and decide whether it is safe to validate and deploy.
What an inbound change set is
An inbound change set is the target org's view of a change set that another org uploaded to it. The source org sees the same object as an outbound change set. The package of metadata is the same. Only the direction differs.
You cannot edit an inbound change set. You can view its components, validate it, deploy it, and delete it. If the contents are wrong, the fix happens in the source org: you clone or edit the outbound change set, add the missing pieces, and upload again.
Two permissions matter here. A user needs Deploy Change Sets to see and deploy inbound change sets. Deploying also requires the user to have the permissions that the components themselves require. For example, a profile in the change set can only be deployed by someone with enough access to manage profiles.
Finding the change set
- In the target org, open Setup.
- In Quick Find, enter Inbound Change Sets and select it.
- Read the page in its two sections.
The first section, Change Sets Awaiting Deployment, lists change sets that have arrived and have not yet been deployed. The second, Deployment History, lists earlier deployments and validations.
If this is the first visit, Salesforce may show an introductory page. Choose to continue and the lists appear.
The awaiting list shows these columns:
| Column | Meaning |
|---|---|
| Change Set Name | The name given in the source org. |
| Description | The text the sender typed. Senders often use this for a ticket number or release label. |
| Source Organization | The org that uploaded it. Check this matches the org you expect. |
| Uploaded By | The user who uploaded it. |
| Upload Date | When it arrived. |
| Actions | Links to deploy or delete. |
If the change set does not appear, the usual causes are these:
- The upload has not finished. Large change sets are processed in the background, and the source org shows the upload status.
- It was uploaded to a different target org than the one you are viewing.
- The deployment connection is not authorized in the direction you need. A sandbox-to-production path must be authorized from the target side.
- You are missing the Deploy Change Sets permission.
Inspecting the contents
Select the change set name to open its detail page. You see the name, description, source organization, and the Change Set Components list. Each row shows the component's name, its parent object where relevant, its type, and the API name.
Treat this list as a checklist against your release plan. Look for four things.
- Everything you expect is present. If a flow calls an Apex class, the class should be in the list, or already exist in the target org.
- Nothing unexpected is present. A profile or a permission set in the list can overwrite access settings in production.
- Types that carry risk. Profiles, permission sets, flows, and page layouts replace what is in the target org. They do not merge with it in every case.
- Names and parents. Fields appear under their object. A field with the same API name as an existing field will overwrite that field's metadata.
Using View/Add Dependencies is not available here
The dependency tools belong to the outbound side. Inbound, you cannot add components. This is why the review matters. A missing dependency is discovered either here, by reading, or later, when validation fails.
Comparing with the source
You can compare the change set to what exists in the source org by retrieving the same components. A manifest like the one below lists the components that the change set is expected to hold.
<?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>The manifest names metadata by type and member, which is the same structure as a change set's component list. Retrieve the components from the sandbox with the Salesforce CLI:
sf project retrieve start --manifest manifest/package.xml --target-org MySandboxRead the retrieved files and compare them with the change set list. This is optional, but it helps for large or high-risk releases. It also shows differences between what the developer meant to send and what the change set holds.
Checking the target org before you act
The review is more than reading a list. Check the target org's state against the change set.
- Does a component already exist? If it does, the deployment overwrites it. If production has configuration that was changed directly and never copied back to the sandbox, the overwrite loses that work.
- Are the prerequisites there? Record types, picklist values, and referenced users or queues must exist in the target org when a component depends on them and is not in the change set.
- Are features enabled? A component for a feature, such as a particular object setting, fails if the target org does not have the feature on.
- Is the timing right? Deployments can lock components and take time. Avoid peak usage in production, and avoid overlapping with another deployment.
Where this fits in the flow
Common mistakes in review
- Skipping the review because validation will catch problems. Validation catches missing dependencies and failing tests. It does not tell you that an extra profile will change user access, because that deploys successfully.
- Trusting the name. Two change sets can have similar names and different contents. Check the description, the upload date, and the uploader.
- Reviewing only the top level. Expand your reading to parent objects. A field change can sit inside an object that looks unchanged.
- Deploying an old upload. If someone uploaded a newer version under the same name, both may be listed. Uploading again with the same name does not replace the previous one in every case. Deploy the intended one and delete stale ones.
A short review routine
- Open Inbound Change Sets and confirm the source organization, uploader, and date.
- Open the change set and read every component row against the release plan.
- Flag profiles, permission sets, flows, and layouts for a second look.
- Check the target org for existing components that will be overwritten and for required prerequisites.
- If anything is off, stop and have the source org fix and re-upload. If it is correct, go on to validation.
Exercise
A change set named "Invoice Release" is listed under Change Sets Awaiting Deployment. Its component list includes a custom field, a flow, and a profile, but the release plan mentions only the field and the flow. What do you do, and where is the fix made?
Show answer
Do not validate or deploy yet. The profile is unexpected, and deploying it could change user access in the target org. You cannot edit an inbound change set, so ask the sender to remove the profile from the outbound change set (or clone it without the profile) in the source org and upload it again. Then review the new inbound change set and delete the stale one.
Exercise
Name two checks you can do in the target org, beyond reading the component list, before you validate an inbound change set.
Show answer
Any two of these: check whether the components already exist in the target org and would be overwritten, check that prerequisites such as record types, picklist values, or referenced users exist, check that required features are enabled, and check that the timing does not conflict with peak use or another deployment.