Sub topic 1
Moving Configuration Between Salesforce Orgs with Change Sets
Prerequisites
Assume you know Salesforce Setup, the difference between production and sandbox orgs, and common metadata types such as custom objects, fields, flows, and Apex classes. You also need the Deploy Change Sets permission and access to related orgs.
Configuration Is Metadata, Not Data
Salesforce configuration is usually metadata, which describes how an org behaves. Custom objects, fields, validation rules, flows, permission sets, and Apex classes are metadata.
Records are data. Account records, invoices, and contacts are data. A change set moves metadata between orgs. It does not move ordinary records, user passwords, or most other data.
What a Change Set Is and How It Moves
A change set is a package of selected metadata components. You build an outbound change set in the source org, upload it, and review it as an inbound change set in the target org. You then validate or deploy it.
A change set does not automatically include every component that the selected component needs. You must add dependencies, such as a custom field used by a flow.
Which Orgs Can Exchange Change Sets
Change sets work only between orgs with a deployment connection. Common paths include a sandbox and its production org, or sandboxes related to the same production org when Salesforce permits that connection. The target org must be configured to receive deployments.
Authorizing a Deployment Connection
In Setup, open Deployment Settings in the source or target org. Select the related org and authorize the connection. This authorization controls whether change sets can move between the two orgs. It does not grant general administrator access between them.
Creating an Outbound Change Set
In the source org, open Outbound Change Sets, create a change set, and add components by type and name. Review the component list and add required dependencies before uploading.
A manifest uses a similar component-list model:
<?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>
<name>ApexClass</name>
</types>
<version>61.0</version>
</Package>Exercise
Does a change set move existing Account records from a sandbox to production?
Show answer
No. It moves selected metadata. Use a separate data migration method for records.