@salesforce/afv-skills 1.67.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -5
- package/package.json +1 -1
- package/skills/afcc-setup-coordinate/SKILL.md +348 -0
- package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
- package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
- package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
- package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
- package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
- package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
- package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
- package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
- package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
- package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
- package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
- package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
- package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
- package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
- package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
- package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
- package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
- package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
- package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
- package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
- package/skills/agentforce-offline-experimentation-run/SKILL.md +14 -22
- package/skills/agentforce-offline-experimentation-run/scripts/bt_compare.py +81 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_fetch.py +358 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_patch_agent.py +110 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/__init__.py +34 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentpatch.py +483 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentsrc.py +565 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/cache.py +95 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/compare.py +617 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/fetch.py +1012 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +140 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +93 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/patch.py +327 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/redact.py +40 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/results.py +288 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/scoring.py +340 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +354 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/splits.py +136 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/stdm.py +98 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/tokens.py +173 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/units.py +199 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/versions.py +194 -0
- package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +367 -379
- package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +23 -6
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +483 -796
- package/skills/commerce-react-storefront-create/SKILL.md +54 -21
- package/skills/dx-lifecycle-center/SKILL.md +22 -13
- package/skills/dx-lifecycle-center/examples/workflows.md +54 -17
- package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
- package/skills/dx-lifecycle-center/references/connect-org.md +62 -12
- package/skills/dx-lifecycle-center/references/deploy.md +3 -3
- package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
- package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
- package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
- package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
- package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
- package/skills/dx-org-devhub-configure/SKILL.md +85 -84
- package/skills/dx-org-devhub-configure/examples/status-output.md +25 -2
- package/skills/dx-org-devhub-configure/scripts/devhub.sh +265 -140
- package/skills/dx-org-devhub-configure/scripts/test-devhub.sh +100 -15
- package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
- package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
- package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +88 -0
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +167 -0
- package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
- package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
- package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
- package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
- package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
- package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
- package/skills/dx-scratch-def-configure/SKILL.md +163 -0
- package/skills/dx-scratch-def-configure/examples/confirm-card.md +53 -0
- package/skills/dx-scratch-def-configure/examples/report-recipes.md +100 -0
- package/skills/dx-scratch-def-configure/references/features.json +3270 -0
- package/skills/dx-scratch-def-configure/references/project-scratch-def.schema.json +1841 -0
- package/skills/dx-scratch-def-configure/references/settings-map.json +682 -0
- package/skills/dx-scratch-def-configure/scripts/lib_scratch_def.py +1306 -0
- package/skills/dx-scratch-def-configure/scripts/requirements.txt +3 -0
- package/skills/dx-scratch-def-configure/scripts/scrape_config_values.py +848 -0
- package/skills/education-cloud-domain-configure/SKILL.md +1 -1
- package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +1 -1
- package/skills/experience-afv-analytics-query/SKILL.md +239 -0
- package/skills/experience-afv-analytics-query/references/references.md +176 -0
- package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
- package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
- package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
- package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
- package/skills/experience-app-mcp-generate/SKILL.md +174 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
- package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
- package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
- package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
- package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
- package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
- package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
- package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
- package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
- package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
- package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
- package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
- package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
- package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
- package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
- package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
- package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
- package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
- package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
- package/skills/experience-cms-content-type-generate/SKILL.md +1 -1
- package/skills/experience-design-validate/SKILL.md +1 -1
- package/skills/experience-search-coordinate/SKILL.md +18 -12
- package/skills/experience-search-coordinate/references/content-route.md +79 -1
- package/skills/field-service-data-capture-migrate/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
- package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
- package/skills/platform-apex-generate/SKILL.md +14 -11
- package/skills/platform-apex-test-generate/SKILL.md +2 -1
- package/skills/platform-custom-field-generate/SKILL.md +24 -16
- package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
- package/skills/platform-custom-setting-generate/SKILL.md +1 -0
- package/skills/platform-datamask-run/SKILL.md +52 -71
- package/skills/platform-datamask-run/references/api-surface.md +10 -4
- package/skills/platform-datamask-run/references/policy-authoring.md +56 -7
- package/skills/platform-datamask-run/references/run-and-abort.md +17 -10
- package/skills/platform-datamask-run/scripts/poll-job.sh +15 -25
- package/skills/platform-dataspace-access-configure/SKILL.md +43 -10
- package/skills/platform-flexipage-generate/SKILL.md +7 -10
- package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
- package/skills/platform-metadata-discovery-get/SKILL.md +185 -0
- package/skills/platform-metadata-discovery-get/references/api-map.md +25 -0
- package/skills/platform-metadata-discovery-get/references/h360-routes.md +30 -0
- package/skills/platform-metadata-discovery-get/references/scoped-soql.md +52 -0
- package/skills/platform-metadata-grounding-get/SKILL.md +170 -0
- package/skills/platform-policy-rule-generate/SKILL.md +85 -231
- package/skills/platform-policy-rule-generate/references/condition-model.md +47 -0
- package/skills/platform-policy-rule-generate/references/condition-templates.md +89 -0
- package/skills/platform-policy-rule-generate/references/conjunction-compiler.md +25 -0
- package/skills/platform-policy-rule-generate/references/conjunction-expression.md +30 -0
- package/skills/platform-policy-rule-generate/references/consumer-all.md +9 -0
- package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +99 -0
- package/skills/platform-policy-rule-generate/references/deploy-errors.md +24 -36
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitions/ExistsJoinRLS_Rule_1.policyRuleDefinition +91 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitions/FieldReadDeny_Rule_1.policyRuleDefinition +72 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitions/LastCharactersFieldMasking_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitions/PrincipalFieldMatchRLS_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitions/TaggedObjectAccess_Rule_1.policyRuleDefinition +65 -0
- package/skills/platform-policy-rule-generate/references/headless-transport.md +87 -0
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +18 -11
- package/skills/platform-policy-rule-generate/references/policy-shapes.md +107 -0
- package/skills/platform-policy-rule-generate/references/principal-expression.md +31 -0
- package/skills/platform-policy-rule-generate/references/reference-resolution.md +51 -0
- package/skills/platform-policy-rule-generate/references/resource-expression.md +48 -0
- package/skills/platform-policy-rule-generate/references/runtime-context.md +9 -0
- package/skills/platform-policy-rule-generate/references/templates-access.md +11 -9
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +5 -3
- package/skills/platform-policy-rule-generate/references/templates-record.md +37 -22
- package/skills/platform-policy-rule-generate/references/templates-transform.md +10 -8
- package/skills/platform-policy-rule-generate/references/templates.md +2 -2
- package/skills/platform-policy-rule-generate/references/ui-compatibility.md +36 -18
- package/skills/platform-report-generate/SKILL.md +29 -5
- package/skills/platform-report-generate/references/chart-types.md +26 -2
- package/skills/platform-report-generate/references/column-names.md +43 -0
- package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
- package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
- package/skills/platform-report-generate/references/verification-checklist.md +22 -2
- package/skills/service-digital-engagement-channel-configure/SKILL.md +49 -110
- package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +35 -0
- package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
- package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
- package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +128 -28
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +16 -20
- package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
- package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
- package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
- package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
- package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
- package/skills/service-e911-configure/SKILL.md +242 -0
- package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
- package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
- package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
- package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
- package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
- package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
- package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
- package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
- package/skills/experience-content-media-image-generate/SKILL.md +0 -83
- package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
- package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
- package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Move to 2GP Operations Reference
|
|
2
|
+
|
|
3
|
+
Operations grouped by purpose. Use these as the building blocks for the workflows above.
|
|
4
|
+
|
|
5
|
+
### Summary
|
|
6
|
+
|
|
7
|
+
| Operation | Purpose | Status | Call | Depends on |
|
|
8
|
+
|-----------|---------|--------|------|------------|
|
|
9
|
+
| `discover-package-on-devhub` | read | implemented | `queryPackage2ByConvertedFrom` | — |
|
|
10
|
+
| `check-eligibility-1gp-released` | validate | implemented | `queryHighestReleased1GPVersion` | `discover-package-on-devhub` |
|
|
11
|
+
| `check-eligibility-2gp-converted-released` | validate | implemented | `queryReleased2GPConvertedVersion` | `check-eligibility-1gp-released` |
|
|
12
|
+
| `check-already-done` | validate | implemented | `queryNativePackage2Version` | `check-eligibility-2gp-converted-released` |
|
|
13
|
+
| `confirm-affirmations` | validate | implemented | — | `check-already-done` |
|
|
14
|
+
| `finalize-move-to-2gp` | write | implemented | `finalizeMoveTo2gp` | `confirm-affirmations` |
|
|
15
|
+
| `verify-finalize-by-user-confirmation` | verify | implemented | — | `finalize-move-to-2gp` |
|
|
16
|
+
| `verify-finalize-on-packaging-org` | verify | implemented | `queryPackageConversion` | `finalize-move-to-2gp` |
|
|
17
|
+
|
|
18
|
+
### Dependency graph
|
|
19
|
+
|
|
20
|
+
```mermaid
|
|
21
|
+
graph TD
|
|
22
|
+
discover_package_on_devhub["discover-package-on-devhub (read)"]
|
|
23
|
+
check_eligibility_1gp_released["check-eligibility-1gp-released (validate)"]
|
|
24
|
+
check_eligibility_2gp_converted_released["check-eligibility-2gp-converted-released (validate)"]
|
|
25
|
+
check_already_done["check-already-done (validate)"]
|
|
26
|
+
confirm_affirmations["confirm-affirmations (validate)"]
|
|
27
|
+
finalize_move_to_2gp["finalize-move-to-2gp (write)"]
|
|
28
|
+
verify_finalize_by_user_confirmation["verify-finalize-by-user-confirmation (verify)"]
|
|
29
|
+
verify_finalize_on_packaging_org["verify-finalize-on-packaging-org (verify)"]
|
|
30
|
+
discover_package_on_devhub --> check_eligibility_1gp_released
|
|
31
|
+
check_eligibility_1gp_released --> check_eligibility_2gp_converted_released
|
|
32
|
+
check_eligibility_2gp_converted_released --> check_already_done
|
|
33
|
+
check_already_done --> confirm_affirmations
|
|
34
|
+
confirm_affirmations --> finalize_move_to_2gp
|
|
35
|
+
finalize_move_to_2gp --> verify_finalize_by_user_confirmation
|
|
36
|
+
finalize_move_to_2gp --> verify_finalize_on_packaging_org
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Read operations
|
|
40
|
+
|
|
41
|
+
#### `discover-package-on-devhub`
|
|
42
|
+
|
|
43
|
+
Look up the 2GP Package2 record on DevHub for the 1GP package the user wants to move. The user provides the 1GP package by name (the customer-facing label) or by SubscriberPackageId (the 033... key prefix). Returns the Package2 Id (0Ho... key prefix) and namespace prefix, plus the SubscriberPackageId for use in eligibility queries. This is the DevHub-side anchor for the DevHub-side eligibility checks; the 1GP-side eligibility check uses the SubscriberPackageId (which equals the MetadataPackage Id on the 1GP DE org) directly.
|
|
44
|
+
|
|
45
|
+
**Call:** `queryPackage2ByConvertedFrom` — status: `implemented`
|
|
46
|
+
|
|
47
|
+
**Inputs:**
|
|
48
|
+
|
|
49
|
+
- `devhub_alias` *(`String`)* — Source: user_input. The `sf` alias of the user's DevHub org. Captured at skill start (see agent_guidance "AT START").
|
|
50
|
+
- `subscriber_package_id` *(`String`)* — The 1GP package's SubscriberPackageId (033... key prefix). User provides this directly, or agent obtains it via a MetadataPackage name lookup on the 1GP DE org (see agent_guidance). Validate it against the `validation` pattern before substituting it into any query or URL path; if it does not match, stop and ask the user for the correct Id.
|
|
51
|
+
- **Validation:** Must match `/^033[A-Za-z0-9]{12}([A-Za-z0-9]{3})?$/` (a 15- or 18-character 033-prefix Id). Reject any value containing single quotes, backslashes, or whitespace.
|
|
52
|
+
|
|
53
|
+
**Name lookup:** if the user only knows the package name, query `SELECT Id, Name, NamespacePrefix FROM MetadataPackage` on the 1GP DE org and filter the results client-side by Name. Do not interpolate user input into SOQL literals.
|
|
54
|
+
|
|
55
|
+
### Write operations
|
|
56
|
+
|
|
57
|
+
#### `finalize-move-to-2gp`
|
|
58
|
+
|
|
59
|
+
Irrevocably finalize the Move-to-2GP transition by POSTing to the packaging Connect API endpoint `POST /services/data/v69.0/connect/packaging/package/{packageId}/finalize-move-to-2gp` against the 1GP DE (packaging) org. `{packageId}` is the 1GP MetadataPackage Id (033- prefix). The request body carries the three affirmation flags — acknowledgedIrrevocable, acknowledgedTestingComplete, acknowledgedSourceRetrieved — all required and all must be true (these are exactly what the user confirmed in confirm-affirmations). Server-side the endpoint enforces the CreatePackaging edit-access gate, re-validates the three affirmations, confirms the URL packageId matches the org's in-progress conversion, then finalizes it — after which PackageConversion.EndDate is set. Shipped in 266 (operationId finalizeMoveTo2gp, MCP-enabled). On success returns successfullyFinalized, finalizedAt, packageId, and conversionId. For orgs on a pre-266 release, fall back to the manual browser path (invocation.fallback) which delivers the user to viewAllPackage.apexp to click "Move to 2GP" → Proceed.
|
|
60
|
+
|
|
61
|
+
**Call:** `finalizeMoveTo2gp` — status: `implemented`
|
|
62
|
+
|
|
63
|
+
**Inputs:**
|
|
64
|
+
|
|
65
|
+
- `packaging_org_alias` *(`String`)* — Source - output of confirm-affirmations (transitively from check-eligibility-1gp-released.packaging_org_alias). The `sf` alias of the user's 1GP DE (packaging) org.
|
|
66
|
+
- **Source:** output of `check-eligibility-1gp-released`
|
|
67
|
+
- `subscriber_package_id` *(`String`)* — Source - output of confirm-affirmations (transitively from discover-package-on-devhub.subscriber_package_id). The 1GP MetadataPackage's SubscriberPackageId / 033- prefix.
|
|
68
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
69
|
+
- `acknowledged_irrevocable` *(`Boolean`)* — Source - output of confirm-affirmations (acknowledged_irrevocable).
|
|
70
|
+
- `acknowledged_testing_complete` *(`Boolean`)* — Source - output of confirm-affirmations (acknowledged_testing_complete).
|
|
71
|
+
- `acknowledged_source_retrieved` *(`Boolean`)* — Source - output of confirm-affirmations (acknowledged_source_retrieved).
|
|
72
|
+
|
|
73
|
+
**Depends on:** `confirm-affirmations`
|
|
74
|
+
|
|
75
|
+
### Verify operations
|
|
76
|
+
|
|
77
|
+
#### `verify-finalize-by-user-confirmation`
|
|
78
|
+
|
|
79
|
+
Human cross-check for the pre-266 manual fallback path ONLY: ask the user what the Setup page showed after they clicked Proceed. This step applies only when finalize-move-to-2gp took its manual browser fallback (org on a pre-266 release). In the normal 266 path the agent dispatches the finalize directly and the user never interacts with a browser, so this step is skipped — the endpoint's own response (successfullyFinalized / finalizedAt / conversionId) plus verify-finalize-on-packaging-org's EndDate wire-verify are the authoritative signals. Retained because the fallback still needs a verification surface when no direct-dispatch response exists.
|
|
80
|
+
|
|
81
|
+
**Status:** `implemented`
|
|
82
|
+
|
|
83
|
+
**Inputs:**
|
|
84
|
+
|
|
85
|
+
- `package_name` *(`String`)* — Source - output of finalize-move-to-2gp (transitively from discover-package-on-devhub.package_name).
|
|
86
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
87
|
+
|
|
88
|
+
**Depends on:** `finalize-move-to-2gp`
|
|
89
|
+
|
|
90
|
+
#### `verify-finalize-on-packaging-org`
|
|
91
|
+
|
|
92
|
+
The canonical wire-verification: re-query the PackageConversion record on the 1GP DE org to confirm EndDate is populated (non-null). EndDate is set by the package-conversion finalization service as part of finalize and is the reliable post-finalize wire signal. Uses the read-only PackageConversion Tooling exposure shipped in 264 (1GP DE org auth is already a hard precondition for this skill, so no auth-state branching needed). This is the canonical wire-verify and runs directly after finalize-move-to-2gp; on the pre-266 manual fallback it also follows the user attestation in verify-finalize-by-user-confirmation. Note: the finalize step's own 266 response also returns finalizedAt + conversionId directly, so this step is a durable cross-check rather than the sole success signal.
|
|
93
|
+
|
|
94
|
+
**Call:** `queryPackageConversion` — status: `implemented`
|
|
95
|
+
|
|
96
|
+
**Inputs:**
|
|
97
|
+
|
|
98
|
+
- `packaging_org_alias` *(`String`)* — Source - output of finalize-move-to-2gp (transitively from check-eligibility-1gp-released.packaging_org_alias).
|
|
99
|
+
- **Source:** output of `check-eligibility-1gp-released`
|
|
100
|
+
- `subscriber_package_id` *(`String`)* — Source - output of finalize-move-to-2gp (transitively from discover-package-on-devhub.subscriber_package_id).
|
|
101
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
102
|
+
|
|
103
|
+
**Depends on:** `finalize-move-to-2gp`
|
|
104
|
+
|
|
105
|
+
**Notes:** 264 shipped the read-only public Tooling exposure of PackageConversion (available when packaging is enabled for the org). The fields queried here — Id, EndDate, FinalizedVersionId (FK → SubscriberPackageVersion), FinalizedVersionNumber, and the WHERE key ConvertedFromPackageId (FK → SubscriberPackage) — are all exposed read-only. EndDate non-null means finalize completed. Move-to-2GP does NOT auto-create native Package2Version records on DevHub (native creation is a separate user-driven step), so there is no Package2Version-based wire-verify; EndDate is the reliable signal.
|
|
106
|
+
|
|
107
|
+
### Other operations
|
|
108
|
+
|
|
109
|
+
#### `check-eligibility-1gp-released`
|
|
110
|
+
|
|
111
|
+
Find the highest Released 1GP major.minor version of the package by querying MetadataPackageVersion on the 1GP DE org. MetadataPackageVersion is the 1GP DE-side view of `all_package_version` joined with `dev_package_version`, with a `ReleaseState` STATICENUM field whose Released picklist value is `"Released"`.
|
|
112
|
+
|
|
113
|
+
**Call:** `queryHighestReleased1GPVersion` — status: `implemented`
|
|
114
|
+
|
|
115
|
+
**Inputs:**
|
|
116
|
+
|
|
117
|
+
- `packaging_org_alias` *(`String`)* — Source: user_input. The `sf` alias of the user's 1GP DE (packaging) org. Captured at skill start (see agent_guidance "AT START").
|
|
118
|
+
- `subscriber_package_id` *(`String`)* — Source - output of discover-package-on-devhub. Note: the SubscriberPackageId (033... key prefix) on DevHub is the same Id as MetadataPackage on the 1GP DE org — both wrap the same all_package row.
|
|
119
|
+
|
|
120
|
+
**Depends on:** `discover-package-on-devhub`
|
|
121
|
+
|
|
122
|
+
#### `check-eligibility-2gp-converted-released`
|
|
123
|
+
|
|
124
|
+
Confirm a 2GP-converted Package2Version exists at the same major.minor as the highest Released 1GP version, AND that the 2GP version is Released. This is the second half of the eligibility gate — Move-to-2GP requires the highest 1GP major.minor to have a corresponding RELEASED 2GP-converted equivalent. Queries Package2Version on DevHub.
|
|
125
|
+
|
|
126
|
+
**Call:** `queryReleased2GPConvertedVersion` — status: `implemented`
|
|
127
|
+
|
|
128
|
+
**Inputs:**
|
|
129
|
+
|
|
130
|
+
- `devhub_alias` *(`String`)* — Source - output of check-eligibility-1gp-released (transitively from discover-package-on-devhub.devhub_alias).
|
|
131
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
132
|
+
- `package2_id` *(`String`)* — Source - output of check-eligibility-1gp-released (transitively from discover-package-on-devhub.package2_id).
|
|
133
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
134
|
+
- `major` *(`Integer`)* — Source - output of check-eligibility-1gp-released (highest_1gp_major).
|
|
135
|
+
- `minor` *(`Integer`)* — Source - output of check-eligibility-1gp-released (highest_1gp_minor).
|
|
136
|
+
|
|
137
|
+
**Depends on:** `check-eligibility-1gp-released`
|
|
138
|
+
|
|
139
|
+
#### `check-already-done`
|
|
140
|
+
|
|
141
|
+
Detect the early-exit case — if a native (non-converted) Package2Version exists for this Package2, Move-to-2GP has ALREADY happened OR the package was 2GP-native to start with. Native 2GP versions are characterized by ConvertedFromVersionId = NULL. If any such Package2Version exists, the skill exits immediately.
|
|
142
|
+
|
|
143
|
+
**Call:** `queryNativePackage2Version` — status: `implemented`
|
|
144
|
+
|
|
145
|
+
**Inputs:**
|
|
146
|
+
|
|
147
|
+
- `devhub_alias` *(`String`)* — Source - output of check-eligibility-2gp-converted-released (transitively from discover-package-on-devhub.devhub_alias).
|
|
148
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
149
|
+
- `package2_id` *(`String`)* — Source - output of check-eligibility-2gp-converted-released (transitively from discover-package-on-devhub.package2_id).
|
|
150
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
151
|
+
|
|
152
|
+
**Depends on:** `check-eligibility-2gp-converted-released`
|
|
153
|
+
|
|
154
|
+
#### `confirm-affirmations`
|
|
155
|
+
|
|
156
|
+
Present the irrevocability + testing affirmations to the user, mirroring the "Move to Second-Generation Managed Packaging" dialog shown in Setup UI. The user must explicitly confirm each affirmation before the agent proceeds to the (manual) finalize step. This step has no API surface — it's a structured agent-to-user interaction encoded in the SOR for contract consistency between the eventual 266 Connect API (which is expected to require these as request-body fields) and the pre-266 manual flow.
|
|
157
|
+
|
|
158
|
+
**Status:** `implemented`
|
|
159
|
+
|
|
160
|
+
**Inputs:**
|
|
161
|
+
|
|
162
|
+
- `package_name` *(`String`)* — Source - output of check-already-done (transitively from discover-package-on-devhub.package_name).
|
|
163
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
164
|
+
- `package2_id` *(`String`)* — Source - output of check-already-done (transitively from discover-package-on-devhub.package2_id).
|
|
165
|
+
- **Source:** output of `discover-package-on-devhub`
|
|
166
|
+
|
|
167
|
+
**Depends on:** `check-already-done`
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# dx-packaging-push-upgrade-configure
|
|
2
|
+
|
|
3
|
+
A Salesforce agent skill that plans, schedules, and monitors **package push upgrades** from a
|
|
4
|
+
Dev Hub — end-to-end.
|
|
5
|
+
|
|
6
|
+
Push upgrades change a package **in the customer's org without their action**, so the skill's
|
|
7
|
+
default posture is **generate → preview → confirm → run**: it never calls `schedule` or `abort`
|
|
8
|
+
until the user has seen the batch plan and org list and said go.
|
|
9
|
+
|
|
10
|
+
## What it does
|
|
11
|
+
|
|
12
|
+
- **Resolves** the package (`033`) and a valid target version (`04t`) against the Dev Hub.
|
|
13
|
+
- **Finds subscribers** via `PackageSubscriber`, then applies eligibility filters (installed only,
|
|
14
|
+
below target, production vs sandbox, org status, subscriber restrictions).
|
|
15
|
+
- **Batches a schedule** per best practices — pilot in sandboxes, stagger production, off-peak by
|
|
16
|
+
time zone, avoid risky windows — and generates the per-batch org CSVs.
|
|
17
|
+
- **Runs** the `sf package push-upgrade schedule` commands after explicit confirmation.
|
|
18
|
+
- **Monitors** results via CLI and `PackagePushRequest` / `PackagePushJob` / `PackagePushError`,
|
|
19
|
+
and verifies the upgrade actually landed.
|
|
20
|
+
|
|
21
|
+
Supports 2GP managed, unlocked, and 1GP→2GP push migrations (`--migrate-to-2gp`).
|
|
22
|
+
|
|
23
|
+
## Inputs
|
|
24
|
+
|
|
25
|
+
The skill reads these from the request; provide whichever you have:
|
|
26
|
+
|
|
27
|
+
- `033…` → package ID
|
|
28
|
+
- `04t…` → target package version ID
|
|
29
|
+
- `0DV…` → existing push request ID (jumps straight to monitoring)
|
|
30
|
+
- a Dev Hub alias/username → the package-owning org (defaults to the configured `target-dev-hub`)
|
|
31
|
+
|
|
32
|
+
### Prerequisites
|
|
33
|
+
|
|
34
|
+
- Salesforce CLI (`sf`) authenticated to the Dev Hub / package-owning org.
|
|
35
|
+
- 2GP managed packages must have passed AppExchange security review and have push upgrades enabled
|
|
36
|
+
via a Partner Support case. Unlocked packages have them enabled by default.
|
|
37
|
+
- The *Create and Update Second-Generation Packages* user permission on the Dev Hub.
|
|
38
|
+
|
|
39
|
+
## Layout
|
|
40
|
+
|
|
41
|
+
| File | Purpose |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| `SKILL.md` | The skill definition and the phase-by-phase workflow. |
|
|
44
|
+
| `references/cli-reference.md` | Verified `sf package push-upgrade` subcommands and flags. |
|
|
45
|
+
| `references/objects.md` | Field reference for the push-upgrade objects. |
|
|
46
|
+
| `references/soql-recipes.md` | Ready-to-run subscriber and monitoring queries. |
|
|
47
|
+
| `references/best-practices.md` | Timing, testing, staggering, and communication guidance. |
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dx-packaging-push-upgrade-configure
|
|
3
|
+
description: "Use this skill to plan, schedule, and monitor Salesforce package push upgrades from a Dev Hub. Finds subscriber orgs via the PackageSubscriber object, resolves and validates the target package version, builds a best-practice batched schedule (pilot sandboxes, then staggered off-peak production batches), generates the per-batch org-ID CSV, and — only after explicit confirmation — runs the sf package push-upgrade CLI commands, then monitors PackagePushRequest, PackagePushJob, and PackagePushError. Supports 2GP managed, unlocked, and 1GP-to-2GP push migrations. TRIGGER when the user wants to push a package upgrade to subscribers, find who has a package installed and at what version, batch a rollout by region, or schedule, monitor, or abort a push upgrade. DO NOT TRIGGER for post-install configuration of an installed package (use dx-pkg-post-install-configure), creating or versioning a package, or installing a package into one org."
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
domains: ["Developer Experience"]
|
|
7
|
+
relatedSkills:
|
|
8
|
+
- "dx-pkg-post-install-configure"
|
|
9
|
+
cliTools:
|
|
10
|
+
- tool: ["sf"]
|
|
11
|
+
semver: ">=2.0.0"
|
|
12
|
+
accessCheck: "UserPermissions.PermissionsPackaging2"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
Plan and drive a Salesforce **package push upgrade** end-to-end: find subscriber orgs, resolve the
|
|
16
|
+
target version, batch a schedule per best practices, generate the org CSV, run the `sf` CLI
|
|
17
|
+
`push-upgrade` commands **after explicit confirmation**, and monitor the results.
|
|
18
|
+
|
|
19
|
+
Push upgrades change a package **in the customer's org without their action**. This is outward-facing
|
|
20
|
+
and hard to reverse. The default posture of this skill is **generate → preview → confirm → run**:
|
|
21
|
+
never call `push-upgrade schedule` or `push-upgrade abort` until the user has seen the batch plan and
|
|
22
|
+
the org list and said go. See `references/best-practices.md` before scheduling anything to production.
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
Gather these from the user's request; parse identifiers loosely wherever they appear:
|
|
27
|
+
- A token starting with `033` → the package ID (`MetadataPackageId` for queries, `--package` for `list`).
|
|
28
|
+
- A token starting with `04t` → the target package **version** ID (`--package` for `schedule`).
|
|
29
|
+
- A token starting with `0DV` → an existing push request ID (jump straight to Phase 5, monitoring).
|
|
30
|
+
- A Dev Hub **alias or username** → the org the push-upgrade objects and commands run against.
|
|
31
|
+
|
|
32
|
+
If the Dev Hub is not given, **assume the default Dev Hub owns the package and verify by querying**
|
|
33
|
+
rather than prompting up front:
|
|
34
|
+
1. Read the default from `sf config get target-dev-hub --json`. If none is set, skip to step 3.
|
|
35
|
+
2. Probe that hub for the package — reuse Phase 1's resolution query against the given `033`/`04t`
|
|
36
|
+
(or `SELECT Id, Name FROM MetadataPackage` if only a name is known). If it returns the package,
|
|
37
|
+
you've confirmed ownership and done Phase 1 in one step — proceed, naming the resolved Dev Hub.
|
|
38
|
+
3. Only if the probe **fails** (no matching rows, or an auth/permission error), fall back to asking:
|
|
39
|
+
run `sf org list --json` and ask the user which Dev Hub owns the package, then re-probe.
|
|
40
|
+
|
|
41
|
+
This keeps the happy path unattended while still catching a wrong/empty hub before any subscriber
|
|
42
|
+
query or plan. Push upgrade objects and commands run against the **Dev Hub / package-owning org**, not
|
|
43
|
+
a subscriber org.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Phase 0 — Confirm scope and prerequisites
|
|
48
|
+
|
|
49
|
+
Establish these before doing anything else; ask only for what you can't infer:
|
|
50
|
+
|
|
51
|
+
1. **Package type** — 2GP managed, unlocked, or a 1GP→2GP migration (`--migrate-to-2gp`).
|
|
52
|
+
- 2GP managed push upgrades require the package to have **passed AppExchange security review**,
|
|
53
|
+
and the feature must be enabled via a **Salesforce Partner Support case**. Unlocked packages
|
|
54
|
+
have push upgrades enabled by default.
|
|
55
|
+
2. **Dev Hub is authenticated** — `sf org display --target-org <devhub> --json`. If it fails, tell the
|
|
56
|
+
user to run `sf org login web --alias <devhub>` and wait.
|
|
57
|
+
3. **Permission** — scheduling needs the *Create and Update Second-Generation Packages* user permission
|
|
58
|
+
on the Dev Hub. If a later command fails with an auth/permission error, surface that as the likely cause.
|
|
59
|
+
|
|
60
|
+
Do not assume security-review/enablement status — if the user hasn't confirmed it, note it as a
|
|
61
|
+
prerequisite they must verify, and continue building the plan (it's still valid).
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Phase 1 — Resolve the package and target version
|
|
66
|
+
|
|
67
|
+
Goal: end with a confirmed **033 package ID** and a **04t target version ID** that is a valid push target.
|
|
68
|
+
|
|
69
|
+
> If the Dev Hub was resolved via the default-hub probe in **Inputs** above, that probe already ran
|
|
70
|
+
> this resolution query — you may already have the package/version in hand. Don't re-query; pick up at
|
|
71
|
+
> validation (step 2).
|
|
72
|
+
|
|
73
|
+
1. If only the 04t is known, resolve its package and version number:
|
|
74
|
+
```bash
|
|
75
|
+
sf data query --target-org <devhub> \
|
|
76
|
+
--query "SELECT Id, MetadataPackageId, Name, MajorVersion, MinorVersion, PatchVersion, BuildNumber, ReleaseState, IsDeprecated FROM MetadataPackageVersion WHERE Id = '<04t>'"
|
|
77
|
+
```
|
|
78
|
+
2. Validate the target version is a legal push target:
|
|
79
|
+
- `ReleaseState = Released` (not `Beta`) and `IsDeprecated = false`. The CLI requires an
|
|
80
|
+
**active, non-beta** version.
|
|
81
|
+
- It must be **higher** than the versions subscribers currently run (Phase 2 confirms this).
|
|
82
|
+
- Push upgrades follow the **same manageability rules** as customer-initiated upgrades — you can't
|
|
83
|
+
push a change a normal upgrade couldn't make (e.g. deleting components, deprecated-then-removed).
|
|
84
|
+
3. If the user only gave a 033, list candidate versions so they can pick the target:
|
|
85
|
+
```bash
|
|
86
|
+
sf data query --target-org <devhub> \
|
|
87
|
+
--query "SELECT Id, Name, MajorVersion, MinorVersion, PatchVersion, BuildNumber, ReleaseState FROM MetadataPackageVersion WHERE MetadataPackageId = '<033>' AND ReleaseState = 'Released' ORDER BY MajorVersion DESC, MinorVersion DESC, PatchVersion DESC, BuildNumber DESC"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
See `references/objects.md` for full field lists.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Phase 2 — Find subscriber orgs (PackageSubscriber)
|
|
95
|
+
|
|
96
|
+
Query `PackageSubscriber` **on the Dev Hub / License Management Org** to discover who has the package
|
|
97
|
+
installed and at what version. `OrgKey` is the org ID that goes in the CSV.
|
|
98
|
+
|
|
99
|
+
Baseline query (installed subscribers on production orgs, below the target version):
|
|
100
|
+
```bash
|
|
101
|
+
sf data query --target-org <devhub> \
|
|
102
|
+
--query "SELECT OrgKey, OrgName, OrgStatus, OrgType, InstanceName, MetadataPackageVersionId, InstalledStatus, HasRestrictionEnabled FROM PackageSubscriber WHERE MetadataPackageId = '<033>' AND InstalledStatus = 'i'"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Then apply the **eligibility filters** — this is where the skill adds judgment. Walk the user through:
|
|
106
|
+
|
|
107
|
+
- **Currently installed only** — `InstalledStatus = 'i'` (`'u'` = uninstalled/not installed).
|
|
108
|
+
- **Not already on the target** — exclude rows whose `MetadataPackageVersionId` equals the target 04t,
|
|
109
|
+
and resolve each subscriber's version numbers so you push only to orgs strictly *below* the target.
|
|
110
|
+
Push upgrades can't downgrade; an org **already at** the target is a **silent no-op** (request/job
|
|
111
|
+
report `Succeeded`, no error), not a detectable failure — so filter these out up front.
|
|
112
|
+
- **Production vs sandbox** — `OrgType`. Best practice is to pilot in **sandboxes** first, then
|
|
113
|
+
production. Offer to split the list by `OrgType`.
|
|
114
|
+
- **Org status** — `OrgStatus` is `Active`/`Demo`/`Free`/`Inactive`/`Trial`, and is **independent of
|
|
115
|
+
`OrgType`** (a Production org can be `Trial`/`Demo`/`Free`). Typically exclude only `Inactive`
|
|
116
|
+
(`OrgStatus != 'Inactive'`); do **not** whitelist `= 'Active'` or you'll silently drop live
|
|
117
|
+
non-`Active` production subscribers.
|
|
118
|
+
- **Respect subscriber restrictions** — if the package lets subscribers block push upgrades, skip rows
|
|
119
|
+
where `HasRestrictionEnabled = true` or `CustomUpgradeType = 'BlockedBySubscriber'`. Pushing to a
|
|
120
|
+
restricted org will error; filter them out up front and report the count.
|
|
121
|
+
|
|
122
|
+
Report a summary table (counts by `OrgType`, by current version, restricted/excluded) so the user can
|
|
123
|
+
sanity-check the population before batching. See `references/soql-recipes.md` for ready-to-run variants.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Phase 3 — Build the batched schedule (best practices)
|
|
128
|
+
|
|
129
|
+
**Do not write any `.csv` file in this phase.** The plan is the only deliverable here — CSVs are a
|
|
130
|
+
Phase 4 action, created only after the user approves and you are about to run `schedule`. Before you
|
|
131
|
+
end this turn, confirm you have written at most one file (the plan itself); if you find yourself
|
|
132
|
+
about to call a file-write tool with a `.csv` path, stop — that belongs in Phase 4, not here.
|
|
133
|
+
|
|
134
|
+
Do **not** dump every org into one request. Propose a batch plan grounded in
|
|
135
|
+
`references/best-practices.md`:
|
|
136
|
+
|
|
137
|
+
- **Pilot first.** Batch 0 = your own test orgs and/or customer **sandboxes**. Recommend a soak period
|
|
138
|
+
(a week+ for sandboxes) before production.
|
|
139
|
+
- **Stagger production.** Start small (e.g. 50–100 orgs of 1,000), grow batches only after clean runs.
|
|
140
|
+
- **Off-peak, by time zone.** Schedule each batch for the subscribers' local late-evening/night; group
|
|
141
|
+
by `InstanceName`/time zone where possible. `--start-time` is **UTC** — state the local-time intent
|
|
142
|
+
and the UTC value you computed.
|
|
143
|
+
- **Avoid risky windows.** No month/quarter/year-end; wait **3–4 weeks after a major Salesforce
|
|
144
|
+
release** before major pushes; avoid Salesforce maintenance windows.
|
|
145
|
+
|
|
146
|
+
Produce a concrete plan the user approves, e.g.:
|
|
147
|
+
|
|
148
|
+
```text
|
|
149
|
+
Batch Population Count Local target --start-time (UTC)
|
|
150
|
+
0 Sandboxes (pilot) 12 immediate (omit -t)
|
|
151
|
+
1 Prod, AMER off-peak 80 Tue 02:00 PT 2026-08-11T09:00:00
|
|
152
|
+
2 Prod, EMEA off-peak 140 Wed 02:00 CEST 2026-08-12T00:00:00
|
|
153
|
+
3 Prod, APAC off-peak 60 Thu 02:00 AEST 2026-08-12T16:00:00
|
|
154
|
+
...
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Convert each batch with the UTC offset in force **on the push date**, not the region's standard offset
|
|
158
|
+
(e.g. PDT is UTC−7 and CEST is UTC+2 in summer; AEST is UTC+10 until Sydney moves to AEDT, UTC+11, in
|
|
159
|
+
October). Regions east of UTC cross the date line: 02:00 local on Thursday is **Wednesday** in UTC, so
|
|
160
|
+
the UTC date in `--start-time` is the day before the local date. Show both in the plan.
|
|
161
|
+
|
|
162
|
+
For each batch, show the org-ID CSV **inline as a fenced code block** — one `OrgKey` per line, no
|
|
163
|
+
header, one org ID per row — labeled with the filename it will be saved under (e.g.
|
|
164
|
+
`push-batch-1-amer.csv`). Confirm the contents with the user. Don't create the `.csv` files while
|
|
165
|
+
planning; write them in Phase 4, only once the user approves and you are about to run `schedule`.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Phase 4 — Schedule (confirm, then run)
|
|
170
|
+
|
|
171
|
+
**Show the exact commands and the org counts, then wait for explicit confirmation** before running any
|
|
172
|
+
`schedule`. Once approved, write each batch's CSV file (contents exactly as confirmed in Phase 3), then
|
|
173
|
+
run one command per batch:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
sf package push-upgrade schedule \
|
|
177
|
+
--target-dev-hub <devhub> \
|
|
178
|
+
--package <04t-target-version> \
|
|
179
|
+
--org-file push-batch-1-amer.csv \
|
|
180
|
+
--start-time "2026-08-11T09:00:00"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Notes and variants:
|
|
184
|
+
- Omit `--start-time` to run **as soon as possible**.
|
|
185
|
+
- Use `--org-list <id1,id2,...>` instead of `--org-file` for a handful of orgs.
|
|
186
|
+
- For a **1GP→2GP push migration**, add `--migrate-to-2gp` (required when the target orgs have the 1GP
|
|
187
|
+
version installed).
|
|
188
|
+
- Each successful `schedule` returns a **`0DV` push request ID** — capture every one; you need them to
|
|
189
|
+
monitor and to abort.
|
|
190
|
+
|
|
191
|
+
After scheduling, record the batch → `0DV` mapping for the user (a small table).
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Phase 5 — Monitor, triage, and abort
|
|
196
|
+
|
|
197
|
+
**Prefer the CLI for status; it takes the 15-char `0DV` from `schedule` directly** (no need to expand
|
|
198
|
+
the ID). Only drop to SOQL for per-org detail, errors, or a durable status rollup.
|
|
199
|
+
|
|
200
|
+
> **Not every failure yields a queryable row.** A request rejected at **schedule time** (e.g. an
|
|
201
|
+
> ineligible/non-subscriber org id → `INVALID_OPERATION`) is stranded at `Created` with **zero
|
|
202
|
+
> `PackagePushJob` rows**, so the SOQL below returns nothing. Its only trace is `schedule`'s own
|
|
203
|
+
> output/exit code and a local `<cwd>/job_errors/push_request_<id>_errors.log` file — pair SOQL polling
|
|
204
|
+
> with checking `schedule`'s result; don't read "no job rows" as "nothing went wrong."
|
|
205
|
+
|
|
206
|
+
**Report** one request — the primary status check:
|
|
207
|
+
```bash
|
|
208
|
+
sf package push-upgrade report --target-dev-hub <devhub> --push-request-id <0DV>
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**List** all requests for the package (033):
|
|
212
|
+
```bash
|
|
213
|
+
sf package push-upgrade list --target-dev-hub <devhub> --package <033> --scheduled-last-days 30
|
|
214
|
+
```
|
|
215
|
+
Filter with `--status` — the CLI enum is `Created | Cancelled | Pending | In Progress | Failed |
|
|
216
|
+
Succeeded` (note the CLI uses `Cancelled`/`In Progress`; the **object** picklist uses
|
|
217
|
+
`Canceled`/`InProgress` — see `references/objects.md`). Add `--show-push-migrations-only` for migrations.
|
|
218
|
+
|
|
219
|
+
When reading either command programmatically, add `--json` and parse the stable keys — do **not** scrape
|
|
220
|
+
the human table (its columns, including the `Num Orgs *` counts, are display-only and vary by CLI
|
|
221
|
+
version). See `references/cli-reference.md` → "Surviving CLI drift".
|
|
222
|
+
|
|
223
|
+
### Dropping to SOQL — resolve the full 18-char Id first
|
|
224
|
+
|
|
225
|
+
The `0DV` returned by `schedule` is **15 characters**. The CLI accepts it as-is, but for direct object
|
|
226
|
+
queries there are two gotchas the live run exposed:
|
|
227
|
+
- **Do not** guess the 3-char suffix (e.g. appending `4A2`) to build the 18-char Id — it varies per record.
|
|
228
|
+
- **`Id LIKE '<0DV>%'` is not supported** on ID fields — it errors.
|
|
229
|
+
|
|
230
|
+
Resolve the canonical 18-char Id once (a 15-char value **is** valid in an `Id =` filter), then reuse it:
|
|
231
|
+
```bash
|
|
232
|
+
sf data query --target-org <devhub> --json \
|
|
233
|
+
--query "SELECT Id, Status FROM PackagePushRequest WHERE Id = '<0DV>'"
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**Status rollup (durable source)** — for "how many orgs succeeded/failed," query the jobs directly
|
|
237
|
+
rather than relying on CLI table decorations:
|
|
238
|
+
```bash
|
|
239
|
+
sf data query --target-org <devhub> \
|
|
240
|
+
--query "SELECT Status, COUNT(Id) total FROM PackagePushJob WHERE PackagePushRequestId = '<0DV-18char>' GROUP BY Status"
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
From that rollup, **report progress explicitly** — don't just echo the raw counts:
|
|
244
|
+
|
|
245
|
+
- **% complete** = `(Succeeded + Failed) / total` — the fraction of orgs Salesforce has finished
|
|
246
|
+
attempting. State how many remain `Pending`/`InProgress`.
|
|
247
|
+
- **% success** = `Succeeded / (Succeeded + Failed)` — the quality signal. Divide by orgs *attempted*,
|
|
248
|
+
**not** `total`, or still-queued orgs will drag the number down and read like failures.
|
|
249
|
+
- **Across batches**, report the *overall rollout* as **% complete = orgs attempted / total planned**
|
|
250
|
+
(e.g. 40 of 80 = 50%), keeping per-batch **% success** separate. Don't headline a single blended
|
|
251
|
+
"% now on the target version" — attempted-vs-planned and succeeded-vs-attempted are different signals,
|
|
252
|
+
and collapsing them misstates where the rollout stands.
|
|
253
|
+
|
|
254
|
+
The job `Status` picklist is `Created | Pending | InProgress | Succeeded | Failed | Canceled` (the object
|
|
255
|
+
uses `InProgress`/`Canceled` — one word — unlike the CLI's `In Progress`/`Cancelled`).
|
|
256
|
+
|
|
257
|
+
**Per-org detail and errors** — go to the objects when a request shows failures. One `PackagePushJob`
|
|
258
|
+
is created per org; failures attach `PackagePushError` rows:
|
|
259
|
+
```bash
|
|
260
|
+
sf data query --target-org <devhub> \
|
|
261
|
+
--query "SELECT Id, SubscriberOrganizationKey, Status, StartTime, EndTime FROM PackagePushJob WHERE PackagePushRequestId = '<0DV-18char>'"
|
|
262
|
+
|
|
263
|
+
sf data query --target-org <devhub> \
|
|
264
|
+
--query "SELECT PackagePushJobId, ErrorSeverity, ErrorType, ErrorTitle, ErrorMessage, ErrorDetails FROM PackagePushError WHERE PackagePushJobId IN (SELECT Id FROM PackagePushJob WHERE PackagePushRequestId = '<0DV-18char>')"
|
|
265
|
+
```
|
|
266
|
+
`ErrorType` values include `DeployError`, `ApexTestFailure`, `LockingFailure`, `IneligibleUpgrade`.
|
|
267
|
+
Summarize failures by `ErrorType` so the user can decide whether to re-push a subset.
|
|
268
|
+
|
|
269
|
+
### Decide: continue, hold, or re-push (when the failure rate is high)
|
|
270
|
+
|
|
271
|
+
Staggering only pays off if you **act on a bad batch before the next one runs**. After each batch:
|
|
272
|
+
|
|
273
|
+
1. **Gate the next batch on this batch's result.** Compute the batch's failure rate from the rollup
|
|
274
|
+
above. If it exceeds your tolerance for the blast radius — a reasonable default is **≥10–20%**,
|
|
275
|
+
tighter for large batches — **hold the rollout**: do **not** schedule the next batch, and `abort`
|
|
276
|
+
any next batch already sitting in `Pending`. You **cannot** abort a request that's already
|
|
277
|
+
`InProgress` or completed (see Abort below), so the real lever is the *unstarted* batch, never the
|
|
278
|
+
running one — never promise to stop a batch that's already executing.
|
|
279
|
+
2. **Triage by `ErrorType` before you decide — not every failure means stop.**
|
|
280
|
+
- `LockingFailure` / `IneligibleUpgrade` are often **transient or filterable** (org temporarily
|
|
281
|
+
busy, or an org slipped to/above the target). Usually safe to **re-push the affected subset**
|
|
282
|
+
after retrying or excluding them, without halting the plan.
|
|
283
|
+
- `DeployError` / `ApexTestFailure` usually signal a **real defect in the version**. Stop the
|
|
284
|
+
rollout, fix the package, cut and validate a **new version**, and restart — don't re-push the
|
|
285
|
+
same build and expect a different result.
|
|
286
|
+
3. **Re-push a subset, not everyone.** Build a fresh CSV of only the failed `OrgKey`s
|
|
287
|
+
(`PackagePushJob WHERE Status = 'Failed'`) once the cause is understood or a fix is shipped, then
|
|
288
|
+
re-run Phase 4 for just that list.
|
|
289
|
+
|
|
290
|
+
### Confirm the upgrade actually landed
|
|
291
|
+
|
|
292
|
+
A `Succeeded` request/job is the request's own view. For real proof, verify the **installed version**:
|
|
293
|
+
|
|
294
|
+
- **On the Dev Hub** — re-query `PackageSubscriber`; the row's `MetadataPackageVersionId` should equal the
|
|
295
|
+
target 04t. This snapshot can briefly **race** the push (a check moments after `Succeeded` may still
|
|
296
|
+
show the old version) — re-query rather than concluding it failed.
|
|
297
|
+
```bash
|
|
298
|
+
sf data query --target-org <devhub> --json \
|
|
299
|
+
--query "SELECT OrgKey, MetadataPackageVersionId, SystemModstamp FROM PackageSubscriber WHERE MetadataPackageId = '<033>' AND OrgKey = '<orgId>'"
|
|
300
|
+
```
|
|
301
|
+
- **Inside the subscriber org** (ground truth, if you can authenticate to it) — check
|
|
302
|
+
`InstalledSubscriberPackage`. Note `SubscriberPackage.NamespacePrefix` **can't be filtered** in the
|
|
303
|
+
WHERE clause; select it and filter client-side:
|
|
304
|
+
```bash
|
|
305
|
+
sf data query --target-org <subscriber-org> --use-tooling-api --json \
|
|
306
|
+
--query "SELECT SubscriberPackage.Name, SubscriberPackage.NamespacePrefix, SubscriberPackageVersionId, SubscriberPackageVersion.MajorVersion, SubscriberPackageVersion.MinorVersion, SubscriberPackageVersion.PatchVersion, SubscriberPackageVersion.BuildNumber FROM InstalledSubscriberPackage"
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
**Abort** — only requests in `Created` or `Pending` can be aborted (an in-progress/completed one can't).
|
|
310
|
+
Takes the 15-char `0DV` directly:
|
|
311
|
+
```bash
|
|
312
|
+
sf package push-upgrade abort --target-dev-hub <devhub> --push-request-id <0DV>
|
|
313
|
+
```
|
|
314
|
+
Confirm with the user before aborting.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Output discipline
|
|
319
|
+
|
|
320
|
+
Write a single, focused plan the user can act on — not an exhaustive report:
|
|
321
|
+
- Include only the sections the request calls for. Discovery-only, verification-only, or hold/abort
|
|
322
|
+
requests do **not** need a batch schedule — don't invent one.
|
|
323
|
+
- State each computed number once (%, counts, decisions). One triage table beats five per-error sections.
|
|
324
|
+
- Give each command block once. Don't emit speculative re-schedule/re-query blocks for steps the user
|
|
325
|
+
hasn't reached unless they asked for the forward plan.
|
|
326
|
+
- Show CSV contents inline as fenced code blocks, and do **not** write separate `.csv` files while
|
|
327
|
+
planning — the plan stays the single deliverable. The files are only created at schedule time (Phase 4).
|
|
328
|
+
- Lead with the decision, then a one-to-two-sentence reason. Cut restatement.
|
|
329
|
+
|
|
330
|
+
## Guardrails
|
|
331
|
+
|
|
332
|
+
- **Never** run `schedule` or `abort` without showing the command + affected org count and getting a yes.
|
|
333
|
+
- The target version must be **active, non-beta, released, non-deprecated**. Push upgrades **can't
|
|
334
|
+
downgrade**, so the target must be **≥** each org's installed version. An org **already at** the
|
|
335
|
+
target is a **silent no-op** — the request and its job report `Succeeded` (no `PackagePushError`), it
|
|
336
|
+
does **not** fail — so exclude same-version orgs up front instead of relying on a failure to catch them.
|
|
337
|
+
- `--start-time` is **UTC** — always show the local-time intent alongside the UTC value you send.
|
|
338
|
+
- Filter out restricted orgs (`HasRestrictionEnabled = true`) before scheduling; don't let the request
|
|
339
|
+
fail on them.
|
|
340
|
+
- **Hold the rollout on a bad batch.** If a batch's failure rate exceeds your threshold, do not schedule
|
|
341
|
+
the next batch (and `abort` any next batch still `Pending`) until the errors are triaged — an
|
|
342
|
+
`InProgress` or completed batch can't be stopped, so the only lever is the unstarted one.
|
|
343
|
+
- Push upgrades can affect customer **data**, not just metadata. If the version includes destructive or
|
|
344
|
+
integration-breaking changes (validation rules, formula fields, removed components), call it out and
|
|
345
|
+
push to sandboxes first.
|
|
346
|
+
- New/changed components are assigned **only to admins** by default. If the version adds features users
|
|
347
|
+
need, remind the user to ship a **post-install script + permission set** (see best-practices).
|
|
348
|
+
|
|
349
|
+
## References
|
|
350
|
+
|
|
351
|
+
- `references/cli-reference.md` — verified `sf package push-upgrade` subcommands and flags.
|
|
352
|
+
- `references/objects.md` — field reference for PackageSubscriber, PackagePushRequest, PackagePushJob,
|
|
353
|
+
PackagePushError, MetadataPackageVersion.
|
|
354
|
+
- `references/soql-recipes.md` — ready-to-run subscriber and monitoring queries.
|
|
355
|
+
- `references/best-practices.md` — timing, testing, staggering, and communication guidance.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Push upgrade best practices
|
|
2
|
+
|
|
3
|
+
Source: Salesforce "Push Upgrade Best Practices" (2GP dev guide). Push upgrades change a package in a
|
|
4
|
+
customer's org **without their action** — poor planning "can result in significant customer
|
|
5
|
+
satisfaction issues," and buggy upgrades can affect **data**, not just metadata.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Timing & scheduling
|
|
10
|
+
|
|
11
|
+
- Give customers an **upgrade timeline** up front: when and how often you'll push.
|
|
12
|
+
- **Avoid disruptive windows**: month-end, quarter-end, year-end, audit cycles, and any period when the
|
|
13
|
+
customer lacks staff to verify.
|
|
14
|
+
- Schedule for the customer's **off-peak hours** (late evening/night). Account for time zones —
|
|
15
|
+
**group orgs by time zone** (use `InstanceName` as a proxy) and schedule each group separately.
|
|
16
|
+
`--start-time` is **UTC**; convert deliberately.
|
|
17
|
+
- Steer clear of **Salesforce maintenance windows**, and ideally **wait 3–4 weeks after a major
|
|
18
|
+
Salesforce release** before pushing major upgrades.
|
|
19
|
+
|
|
20
|
+
## Testing (a higher bar than customer-pulled upgrades)
|
|
21
|
+
|
|
22
|
+
- Push to **your own test orgs first**, then log in and verify.
|
|
23
|
+
- Where possible, push to **customer sandboxes first** and allow **a week or more** to test, validate,
|
|
24
|
+
and fix before touching production.
|
|
25
|
+
- Add an **Apex test-on-install** for basic sanity checks during the upgrade.
|
|
26
|
+
|
|
27
|
+
## Staggering / batching
|
|
28
|
+
|
|
29
|
+
- **Don't push to everyone at once.** Staggering protects support capacity and catches issues early.
|
|
30
|
+
- Start with **small production batches** (e.g. 50–100 of 1,000 customers); enlarge batches only after
|
|
31
|
+
clean runs build confidence.
|
|
32
|
+
|
|
33
|
+
## Customer trust & communication
|
|
34
|
+
|
|
35
|
+
- You are responsible for ensuring customer orgs **aren't adversely affected**.
|
|
36
|
+
- Avoid changes that can break customer integrations (new **validation rules**, **formula fields**,
|
|
37
|
+
removed components). If unavoidable, **test thoroughly and communicate well in advance**.
|
|
38
|
+
- **Enhancing an existing feature:** use a **post-install script** to auto-assign new components via
|
|
39
|
+
**permission sets** — by default, new/changed components are assigned **only to admins**.
|
|
40
|
+
- **Brand-new features:** do **not** auto-assign. Coordinate with org admins on access and rollout timing.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Eligibility reminders
|
|
45
|
+
|
|
46
|
+
- **2GP managed:** must have **passed AppExchange security review**; enable via a **Partner Community
|
|
47
|
+
support case**. Manageability rules for normal upgrades also apply to pushes.
|
|
48
|
+
- **Unlocked:** enabled by default.
|
|
49
|
+
- Target version must be **active, non-beta, released, non-deprecated**, and **strictly higher** than
|
|
50
|
+
each target org's installed version.
|
|
51
|
+
- **Subscriber restrictions:** if a subscriber has restricted push upgrades
|
|
52
|
+
(`HasRestrictionEnabled = true` / `CustomUpgradeType = 'BlockedBySubscriber'`), exclude them — the
|
|
53
|
+
request errors on restricted orgs.
|
|
54
|
+
|
|
55
|
+
## A sane rollout template
|
|
56
|
+
|
|
57
|
+
1. Push to internal test orgs → verify by logging in.
|
|
58
|
+
2. Push to customer **sandboxes** → soak ≥ 1 week.
|
|
59
|
+
3. Production **pilot** batch (50–100), off-peak, one time zone → monitor `PackagePushJob`/`PackagePushError`.
|
|
60
|
+
4. Grow production batches by time zone, off-peak, avoiding risky windows, only after clean runs.
|
|
61
|
+
5. Ship a post-install script + permission set if the version adds features users need immediately.
|