Individual skill
automation-sandbox-post-copy-configure
Apply a Salesforce sandbox post-copy automation JSON config against a target org. Use when the user asks to apply, run, execute, dry-run, or preview a post-copy or post-refresh config file (e.g. `post-copy-config.json`) against a sandbox — including activating/deactivating a Flow (PATCH `FlowDefinition.Metadata.activeVersionNumber` to the version, or `null`), re-pointing an OBM endpoint, updating a RemoteSiteSetting URL, or re-scheduling a ScheduledApex job after refresh. Also trigger for phrasings like "apply post-copy config", "run post-copy automation", "activate Flow <name> post-refresh", "deactivate Flow <name>", "re-point outbound messages after refresh", or "configure sandbox after refresh". Per entry, derive the Tooling API sobject, verify via describe, resolve the Id via SOQL, then PATCH the compound `Metadata` field (`ScheduledApex` uses anonymous Apex). DO NOT TRIGGER for generating config JSON from an SOP (use `automation-sandbox-post-copy-config-generate`) or for deploying metadata XML.
skills/automation-sandbox-post-copy-configure/SKILL.md
Source commit a8a18ce1e4ba12e69b4073eab98ce31bfbd8271e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,151
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 21,807 bytesSKILL.mdcore · 21,807 bytesSKILL.mdcore · 21,807 bytesSKILL.mdcore · 21,807 bytesSKILL.mdcore · 21,807 bytesSKILL.mdcore · 21,807 bytesassets/api_request_templates.jsonasset · 4,273 bytesassets/scheduled_apex_template.apexasset · 887 bytesexamples/sample_config_input.jsonasset · 1,103 bytesexamples/sample_execution_summary.mddoc · 4,117 bytesexamples/sample_scheduled_apex_config.jsonasset · 284 bytesreferences/api_endpoints.mddoc · 10,951 bytesreferences/authentication.mddoc · 2,932 bytesreferences/execution_phasing.mddoc · 3,735 bytesreferences/flow_activation_path.mddoc · 7,311 bytesreferences/rules_gotchas.mddoc · 3,555 bytesreferences/scheduled_apex_path.mddoc · 8,257 bytesscripts/build-scheduled-apex.mjsruns · 2,298 bytesscripts/classify-patch-result.mjsruns · 3,157 bytesscripts/map-metadata-key.mjsruns · 3,491 bytesscripts/plan-phases.mjsruns · 2,887 bytesscripts/resolve-target-org.mjsruns · 1,905 bytesscripts/soql-escape-job-name.mjsruns · 1,046 bytes
Read excerpt
# Automation: Sandbox Post-Copy Configure
Apply a Salesforce sandbox post-copy automation JSON config to a target
org. Four canonical `ConfigurationName` values are pinned:
`OutboundMessages` + `RemoteSiteSettings` → compound-`Metadata` PATCH
(Steps A–E); `ScheduledApex` → anonymous-Apex (Step F) since
`CronTrigger` is read-only; `Flows` → flow-activation (Step G), same
compound-`Metadata` transport as A–E with fixed mutation key
`activeVersionNumber` + state-aware pre-flight (`ALREADY_ACTIVE` /
`ALREADY_INACTIVE`). Non-canonical names are derived + describe-verified.
Every A–E entry must pass Step B (describe 200 + `Metadata` compound
field) before any PATCH is planned; Step B skipped for `ScheduledApex`.
Unverified entries are surfaced in the summary and skipped — never
guessed at.