Release management
Release a Salesforce field and permission change with native deployment tools, real API tests, and a scoped production batch.
Related
A weekly enrichment job updates employee counts for North America prospects. Its next release adds a refresh timestamp so Sales Ops can spot stale accounts. The metadata can deploy successfully even if the API user cannot write the new field. Test the field, the user’s permissions, and the connector together before you switch the new payload on.
Give each environment a release decision
Build the custom field and permission set change in a Developer sandbox. Use a test or UAT org with representative sharing rules, a dedicated integration user, and sample prospect and customer accounts. Test with the same shape of API request the production connector will send. Add a staging org only when it gives you evidence UAT cannot, such as an installed package, production-like config, or a safe copy of integration volume.
- SandboxProve the API user can write the timestamp only on in-scope prospects.
- Production metadataInstall the field and permission set change while the connector sends its current payload.
- First production batchEnable the two-field payload for approved IDs and compare the saved values with the request.
Choose a native Salesforce release path
In Salesforce Lifecycle Center, track the change as a work item. Link the ticket to its metadata changes, submit the change request for review, and promote it through the stages that your pipeline uses. Each stage pairs a Git branch with a Salesforce org. Teams on the managed-package DevOps Center can follow their configured work item and bundle promotion process. Keep the following evidence with the work item regardless of which tool performs the deployment.
If your team already ships from a Salesforce DX project, put the new field and permission set change in the same manifest. Use a sandbox dry run with the appropriate test level for that org. In production, sf project deploy validate can validate a manifest and run the selected Apex tests without applying the metadata. For example, an org that uses local Apex tests can run:
sf project deploy validate --manifest manifest/package.xml --target-org prod --test-level RunLocalTests
If production validation succeeds, record the job ID alongside the reviewed commit and the target org. A qualifying validation job ID can be used for sf project deploy quick within ten days of the validation start. Quick Deploy uses that validated deployment with no new Apex test run. If the reviewed change set or its dependencies move, validate the current release again. Keep the integration user’s permission set assignment and the connector flag in the rollout steps. A metadata manifest alone does not update the external connector or assign the permission set to a user.
Work the release from a test request to production
| Checkpoint | Evidence to capture | When to pause |
|---|---|---|
| Peer review | The commit adds Enrichment_Last_Refreshed__c and updates the dedicated enrichment permission set. The connector owner can keep the existing payload active. | The diff includes unrelated profile or sharing changes, or the new payload cannot be controlled separately. |
| Sandbox API test | The existing payload still works. The two-field payload updates a prospect. A known customer ID remains outside the integration user’s scope. | The job can reach any test customer, or the timestamp field is missing from the saved prospect record. |
| Production metadata | The deployment succeeded. The field exists and the production integration user has the expected permission set. The original payload still runs. | The API user lacks Edit on the timestamp, or it gained unrelated permissions. |
| First scoped batch | Run 25 approved prospect IDs with the new payload. Compare which IDs succeeded, which failed, and the stored employee counts and timestamps. | Any customer ID is touched, or an expected write fails. Switch off the two-field payload and investigate the affected IDs. |
In the worked example, the first sandbox request fails because the builder enabled the field on the admin profile but missed the integration permission set. Add the field permission to the reviewed change and rerun both the allowed and denied requests with the integration user. The production rollout then starts with the original payload active. Once all 25 approved records match the expected values, resume the regular run.
If a connector change fails after deployment, switch it back to the original payload and keep the field while you investigate. If any records changed during the run, use the request log and a pre-run copy of the affected values to correct only those records. Reverting metadata cannot undo successful customer-data writes. The security and access guide gives the exact allow and deny cases for this integration.
Tools for this
The full stack →Keep reading
All guides →Object & data model
How the standard objects, record types, and custom fields fit together, plus the grain rules and relationship choices that decide whether reporting ever ties out.
ArchitectCPQ & quote-to-cash
How quotes, price books, approvals, and billing connect into one revenue chain, plus the config choices that decide whether a signed deal actually invoices correctly.
ArchitectAutomation architecture
How flows, triggers, and validation rules coexist without fighting, plus the order-of-execution and consolidation rules that keep automation from eating itself.