@salesforce/afv-skills 1.68.0 → 1.70.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/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/scripts/btlib/judge.py +23 -31
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +2 -1
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +118 -2
- package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +2 -2
- package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +9 -2
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +12 -1
- package/skills/commerce-react-storefront-create/SKILL.md +54 -21
- package/skills/data360-code-extension-generate/SKILL.md +160 -252
- package/skills/data360-code-extension-generate/references/README.md +34 -172
- package/skills/data360-code-extension-generate/references/environment-setup.md +198 -0
- package/skills/data360-code-extension-generate/references/mcp-integration.md +36 -0
- package/skills/data360-code-extension-generate/references/quick-reference.md +132 -202
- package/skills/data360-code-extension-generate/references/run-logs.md +31 -0
- package/skills/data360-code-extension-generate/references/schema-discovery.md +45 -0
- package/skills/data360-code-extension-generate/references/troubleshooting.md +45 -0
- package/skills/data360-code-extension-generate/scripts/check_env.sh +197 -0
- package/skills/data360-code-extension-generate/scripts/venv_hook.sh +22 -0
- package/skills/dx-devops-work-item-manage/SKILL.md +24 -8
- package/skills/dx-devops-work-item-manage/examples/common-workflows.md +32 -0
- package/skills/dx-devops-work-item-manage/references/review-api.md +95 -0
- package/skills/dx-lifecycle-center/SKILL.md +24 -18
- package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
- package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
- package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
- 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-manage/SKILL.md +12 -12
- package/skills/dx-org-manage/examples/scratch-orgs/display_output.json +1 -3
- package/skills/dx-org-manage/examples/scratch-orgs/success_shape.json +1 -3
- package/skills/dx-org-manage/references/opening-org.md +1 -1
- package/skills/dx-org-manage/references/scratch-org-operations.md +15 -20
- 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 +3 -4
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
- 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/education-cloud-academic-calendar-generate/SKILL.md +2 -2
- package/skills/education-cloud-course-catalog-migrate/SKILL.md +1 -1
- package/skills/education-cloud-domain-configure/references/domain-features/recruitment-admissions.md +8 -7
- package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -0
- package/skills/education-cloud-multi-campus-configure/references/error_handling.md +7 -6
- package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +2 -0
- package/skills/education-cloud-student-recruitment-agent-configure/references/customer-narration.md +2 -0
- package/skills/education-cloud-student-recruitment-agent-configure/references/flows.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/references/grounding.md +5 -4
- package/skills/education-cloud-student-recruitment-agent-configure/references/permissions.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/references/prerequisites.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/references/routing.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 +8 -7
- package/skills/experience-cms-content-type-generate/references/agent-checklist.md +3 -3
- package/skills/experience-cms-content-type-generate/references/anti-patterns.md +2 -2
- package/skills/experience-cms-content-type-generate/references/discovery-details.md +1 -1
- package/skills/experience-cms-content-type-generate/references/retrieve-and-reconcile.md +5 -9
- package/skills/experience-ui-bundle-custom-app-generate/scripts/resolve-uibundle-path.mjs +10 -0
- package/skills/field-service-data-capture-migrate/references/converter-builder-contract.md +2 -2
- package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +2 -2
- package/skills/field-service-data-capture-migrate/scripts/analyze_flow.py +1 -1
- package/skills/field-service-data-capture-migrate/scripts/convert_to_dc_spec.py +1 -1
- package/skills/field-service-data-capture-migrate/scripts/fsm_dc_catalog.py +2 -2
- package/skills/field-service-data-capture-migrate/scripts/generate_summary.py +2 -2
- 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-custom-application-generate/SKILL.md +97 -104
- package/skills/platform-custom-application-generate/references/app-properties.md +52 -0
- package/skills/platform-custom-application-generate/references/app-visibility.md +19 -0
- package/skills/platform-custom-application-generate/references/utility-bar.md +55 -0
- 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 +1 -1
- package/skills/platform-datamask-run/references/policy-authoring.md +41 -18
- package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
- package/skills/platform-dsar-policy-manage/SKILL.md +7 -6
- package/skills/platform-dsar-policy-manage/references/export-and-history.md +10 -8
- package/skills/platform-dsar-policy-manage/references/report-format.md +4 -2
- 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-grounding-get/SKILL.md +7 -7
- package/skills/platform-policy-rule-generate/SKILL.md +9 -7
- package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
- package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
- package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
- package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
- package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
- package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
- package/skills/platform-report-generate/SKILL.md +29 -8
- package/skills/platform-report-generate/references/column-names.md +12 -1
- 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 +12 -0
- package/skills/platform-sharing-rules-generate/SKILL.md +12 -3
- package/skills/platform-sharing-rules-generate/references/rule-types.md +1 -0
- package/skills/service-agentforce-channel-configure/SKILL.md +6 -3
- package/skills/service-agentforce-channel-configure/references/agent-wiring.md +5 -3
- package/skills/service-agentforce-channel-configure/references/channel-branch-email.md +24 -15
- package/skills/service-agentforce-channel-configure/references/input-validation.md +23 -0
- package/skills/service-agentforce-channel-configure/references/live-traffic-gate.md +13 -7
- package/skills/service-agentforce-channel-configure/references/queue-resolution.md +3 -1
- package/skills/service-agentforce-human-escalation-configure/references/_vendored/input-validation.md +23 -0
- package/skills/service-agentforce-human-escalation-configure/references/_vendored/queue-resolution.md +146 -0
- package/skills/service-agentforce-human-escalation-configure/references/escalation-mechanism.md +1 -1
- package/skills/service-agentforce-human-escalation-configure/scripts/tests/_bootstrap.py +42 -11
- package/skills/service-agentforce-human-escalation-configure/scripts/tests/test_escalation_contracts.py +45 -0
- package/skills/service-agentforce-human-escalation-configure/scripts/verify-and-configure.sh +23 -9
- package/skills/service-de-channel-activate/SKILL.md +10 -10
- package/skills/service-de-channel-activate/references/gotchas.md +4 -4
- package/skills/service-de-channel-activate/references/phone-verification.md +43 -19
- package/skills/service-de-channel-create/SKILL.md +1 -1
- package/skills/service-de-channel-create/references/facebook.md +1 -1
- package/skills/service-de-channel-create/references/whatsapp.md +33 -6
- package/skills/service-de-channel-routing-configure/SKILL.md +5 -1
- package/skills/service-de-channel-routing-configure/references/gotchas.md +3 -1
- package/skills/service-de-channel-routing-configure/references/named-queue.md +39 -0
- package/skills/service-de-channel-settings-configure/SKILL.md +3 -1
- package/skills/service-de-channel-settings-configure/references/channel-settings-facets.md +2 -2
- package/skills/service-de-channel-settings-configure/references/gotchas.md +12 -1
- package/skills/service-de-headless-channel-configure/SKILL.md +68 -74
- package/skills/service-de-headless-channel-configure/references/gotchas.md +6 -2
- package/skills/service-de-headless-channel-configure/references/inputs.md +19 -0
- package/skills/service-de-headless-channel-configure/references/output-envelopes.md +23 -1
- package/skills/service-de-headless-channel-configure/references/partial-success.md +1 -0
- package/skills/service-de-headless-channel-configure/references/requested-settings.md +55 -0
- package/skills/service-de-headless-channel-configure/references/worked-examples.md +35 -1
- package/skills/service-digital-engagement-channel-configure/SKILL.md +45 -108
- package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -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 +18 -14
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +17 -21
- 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-digital-engagement-deployment-configure/SKILL.md +2 -2
- package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +4 -2
- package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +1 -1
- 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/service-omni-command-center-configure/SKILL.md +1 -1
- package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
- package/skills/data360-schema-get/SKILL.md +0 -388
- package/skills/data360-schema-get/references/README.md +0 -191
- package/skills/data360-schema-get/scripts/get_dlo_schema.py +0 -244
- package/skills/data360-schema-get/scripts/get_dmo_schema.py +0 -233
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
- package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
- package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
- package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
- 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
- package/skills/field-service-prework-brief-deployer-configure/SKILL.md +0 -646
- package/skills/field-service-voice-to-form-configure/SKILL.md +0 -650
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: platform-dataspace-access-configure
|
|
3
|
-
description: "
|
|
3
|
+
description: "Grant a permission set Data Cloud access two ways: (1) data-space (dataspace) access via dataspaceScopes in PermissionSet XML (MDAPI) — create, change, or remove it; (2) object-level access to a DMO/DLO/CIO object (e.g. Account__dlm) via the Object Access Grants Connect API (ssot/data-governance/object-access-grants) — grant, list, revoke; plus read-only scope inspection. TRIGGER on: dataspace scope / data space access for a permission set, dataAccessLevel / objectAccessLevel, 'use the Connect API to grant a permission set access to an <object>__dlm', RBAC object grants. DO NOT TRIGGER for creating the dataspace itself (the Data 360 data-space skill), a generic permission set with no dataspace access (platform-permission-set-generate), or an access policy / policy rule / tag-based access (platform-policy-rule-generate). For a vague object-access ask, ask permission-set way vs policy way."
|
|
4
4
|
metadata:
|
|
5
5
|
relatedSkills:
|
|
6
6
|
- "platform-permission-set-generate"
|
|
@@ -47,29 +47,44 @@ Object access has a second, separate path — a **data-governance access policy*
|
|
|
47
47
|
|
|
48
48
|
## Decide the Case First
|
|
49
49
|
|
|
50
|
+
> **Case B — preserve existing content.** Do not delete content you did not intend to change without the user's confirmation. Fix deploy or validation errors that trace to your own `<dataspaceScopes>` block (wrong element or enum names). For errors that originate in pre-existing content you were told to preserve (e.g. a `<tabSettings>` or `<fieldPermissions>` entry), make no further edits to that content and report the error message and the offending element in your reply. A request to fix validation errors does not authorize removing content the user told you to preserve; deleting it needs the user's explicit confirmation.
|
|
51
|
+
|
|
50
52
|
Pick exactly one case from the table below before writing any files. Each case has a different output shape.
|
|
51
53
|
|
|
52
54
|
| Case | User intent | Permission set state | Files to emit |
|
|
53
55
|
|---|---|---|---|
|
|
54
|
-
| **A. Create new permset with DS access** | "create a permission set called X with dataspace scope Y" | does NOT exist yet | `permissionsets/<Name>.permissionset-meta.xml` **and** `package.xml` |
|
|
55
|
-
| **B. Add DS access to existing permset** | "grant existing permission set X access to dataspace Y" | already deployed (may contain other permissions) | patched `permissionsets/<Name>.permissionset-meta.xml` **and** `package.xml` — see Case B workflow below |
|
|
56
|
+
| **A. Create new permset with DS access** | "create a permission set called X with dataspace scope Y" | does NOT exist yet | `permissionsets/<Name>.permissionset-meta.xml` **and** `package.xml` (create `package.xml` only if absent) |
|
|
57
|
+
| **B. Add DS access to existing permset** | "grant existing permission set X access to dataspace Y" | already deployed (may contain other permissions) | patched `permissionsets/<Name>.permissionset-meta.xml` **and** `package.xml` (keep the existing one if present; create only if absent) — see Case B workflow below |
|
|
56
58
|
| **C. Object-level grant only** | "grant permset X access to object Z (in dataspace Y)" — permset + scope already configured | already deployed with `dataspaceScopes` | `api-request.json` (Connect API body). NO permission set XML, NO `package.xml` |
|
|
57
59
|
| **D. Inspect existing DS access** | "which permission sets have access to dataspace Y?" | any | chat/report only. NO deployable files, NO runtime API mutation |
|
|
58
60
|
|
|
59
61
|
Only emit the files listed for the case you picked. Emitting Case A/B files for a Case C prompt (or vice versa) is a correctness failure — extra files change the deployment shape.
|
|
60
62
|
|
|
61
|
-
> **Case B — critical:** PermissionSet MDAPI deploy is a **full metadata replace**. Every `<objectPermissions>`, `<fieldPermissions>`, `<userPermissions>`, `<tabSettings>`, `<applicationVisibilities>`, `<recordTypeVisibilities>`, `<customPermissions>`, `<pageAccesses>`, `<classAccesses>`, `<customMetadataTypeAccesses>`, `<customSettingAccesses>`, `<externalDataSourceAccesses>` element you omit from the redeploy is **deleted from the org**. Before adding `<dataspaceScopes>`
|
|
63
|
+
> **Case B — critical:** PermissionSet MDAPI deploy is a **full metadata replace**. Every `<objectPermissions>`, `<fieldPermissions>`, `<userPermissions>`, `<tabSettings>`, `<applicationVisibilities>`, `<recordTypeVisibilities>`, `<customPermissions>`, `<pageAccesses>`, `<classAccesses>`, `<customMetadataTypeAccesses>`, `<customSettingAccesses>`, `<externalDataSourceAccesses>` element you omit from the redeploy is **deleted from the org**. Before adding, changing, or removing `<dataspaceScopes>` on an existing permset, start from its current XML and patch it — never author a permission set from scratch or write placeholder comments such as "replace with actual permissions", and never invent permissions that are not in the file.
|
|
62
64
|
|
|
63
65
|
### Case B workflow
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
0. **Local project first.** If the workspace already contains `permissionsets/<Name>.permissionset-meta.xml` (e.g. under `force-app/main/default/`), READ that file first and edit it in place — it is the current XML; no org or retrieve is needed. Also reuse an existing `package.xml` as-is (add the permset to `<members>` only if missing). If no org is connected, do not stop to ask; use the workspace files.
|
|
68
|
+
1. Only when the file is not in the workspace and an org is available, retrieve the existing permission set:
|
|
66
69
|
```bash
|
|
67
70
|
sf project retrieve start --metadata PermissionSet:<Name> --target-org <alias>
|
|
68
71
|
```
|
|
69
|
-
2. Open
|
|
70
|
-
3. Insert the `<dataspaceScopes>` block for the target DataSpace (element order in the file does not matter for MDAPI). If the file already has a `<dataspaceScopes>` block **for this same DataSpace**, replace only that block. Leave every `<dataspaceScopes>` block for other DataSpaces untouched — one block per DataSpace. For a requested scope removal,
|
|
71
|
-
4.
|
|
72
|
+
2. Open `permissionsets/<Name>.permissionset-meta.xml` (workspace copy or retrieved). Keep every element already there, byte-for-byte except the intended `<dataspaceScopes>` change.
|
|
73
|
+
3. Insert the `<dataspaceScopes>` block for the target DataSpace (element order in the file does not matter for MDAPI). If the file already has a `<dataspaceScopes>` block **for this same DataSpace**, replace only that block. Leave every `<dataspaceScopes>` block for other DataSpaces untouched — one block per DataSpace. For a requested scope removal (revoke), delete ONLY that block; the `<fieldPermissions>`, `<objectPermissions>` and `<tabSettings>` counts must match the original. Omitting the block revokes that DataSpace grant. Verify by retrieving the PermissionSet and confirming the matching `<dataspaceScopes>` block is absent.
|
|
74
|
+
4. Ensure `package.xml` lists the permset in `<members>` (create it only if absent).
|
|
72
75
|
5. Redeploy with `sf project deploy start`.
|
|
76
|
+
6. If deploy validation reports errors on elements you did not touch (e.g. `no CustomTab named Opportunity found` on a preserved `<tabSettings>`), leave them in place and report the message and offending element. **Stop-and-ask rule:** if the user then says "fix it", "fix the validation error" or "make it deploy", that is NOT confirmation to delete — do not remove, comment out or edit that element in any way. Reply that the entry was explicitly preserved, name the element, and ask whether they want it removed; delete it only after they answer yes to that specific question.
|
|
77
|
+
|
|
78
|
+
### Choosing the access levels from the request wording
|
|
79
|
+
|
|
80
|
+
| User wording | `dataAccessLevel` | `objectAccessLevel` |
|
|
81
|
+
|---|---|---|
|
|
82
|
+
| "governed by data governance policies" / "controlled by policy" | as stated; if the request does not state a `dataAccessLevel`, ask which one (do not silently default to `ALL`) | `BY_POLICY` |
|
|
83
|
+
| "remove" / "revoke" the dataspace access | no level — remove the matching `<dataspaceScopes>` block (see Case B step 3); `NONE` keeps the scope but grants no data | n/a |
|
|
84
|
+
| "controlled by the dataspace scope itself / by the parent" **and** "access to everything / all objects in the dataspace" | `CONTROLLED_BY_PARENT` | `ALL_IN_DATASPACE` |
|
|
85
|
+
| An explicit level named in the request | use it verbatim | use it verbatim |
|
|
86
|
+
|
|
87
|
+
`ALL_IN_DATASPACE` is only valid with `CONTROLLED_BY_PARENT`; do not pair it with `ALL`.
|
|
73
88
|
|
|
74
89
|
---
|
|
75
90
|
|
|
@@ -124,7 +139,7 @@ Embed a `<dataspaceScopes>` element inside the `PermissionSet` XML. Deploy with
|
|
|
124
139
|
|
|
125
140
|
### Package Layout (Case A and Case B)
|
|
126
141
|
|
|
127
|
-
A deployable bundle for Layer 1
|
|
142
|
+
A deployable bundle for Layer 1 contains **both** files (reuse an existing `package.xml`; create it only if absent):
|
|
128
143
|
|
|
129
144
|
```text
|
|
130
145
|
<output-root>/
|
|
@@ -132,7 +147,7 @@ A deployable bundle for Layer 1 always contains **both** files:
|
|
|
132
147
|
permissionsets/<Name>.permissionset-meta.xml
|
|
133
148
|
```
|
|
134
149
|
|
|
135
|
-
`package.xml` (
|
|
150
|
+
`package.xml` (list every permission set being deployed in `<members>`):
|
|
136
151
|
|
|
137
152
|
```xml
|
|
138
153
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: platform-dsar-policy-manage
|
|
3
|
-
description: "
|
|
3
|
+
description: "Set up, edit, run, and audit a customer's personal-data portability map (DsarPolicy / Right-to-Portability export). Use for choosing subject roots, follow/stop relationships and fields, including requests to figure out what counts as personal data: elicit the admin's classification decisions, never guess. Covers inactive policy authoring/review, subject resolution, ACTIVE-policy export with bounded polling and terminal-only download, history and coverage gaps. This end-to-end workflow can dispatch the DsarPolicyManager setup SOR; loading its generated configuration skill alone does not replace this workflow. Not subject erasure/deletion, sandbox masking or unrelated metadata deployment."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.7"
|
|
6
6
|
domains: ["Platform"]
|
|
@@ -44,7 +44,7 @@ literal first action of every task — before you pick a workflow, before any `s
|
|
|
44
44
|
"looks like a quick lookup" is the top recurring miss, and it is wrong even when it would work.
|
|
45
45
|
`sf` is the fallback **only** when no routing tool is in reach (checking `sf org list` to see which
|
|
46
46
|
orgs are authenticated locally is fine — that is a client-side auth check, not a SOR call). Every
|
|
47
|
-
`sf
|
|
47
|
+
`sf` command shown in the workflows below is the *no-routing-tool*
|
|
48
48
|
spelling; when the routing tool is present, dispatch the equivalent operation through it instead.
|
|
49
49
|
Detail: `references/headless-sor.md`.
|
|
50
50
|
2. **Export, never erasure.** A run produces an **export file**; it does not erase/redact/delete the
|
|
@@ -108,7 +108,8 @@ Each entity is reached a **different** way — guessing the surface is the top t
|
|
|
108
108
|
| Execute an export | — | **Connect DSR endpoint** (`POST`) |
|
|
109
109
|
| Status / getfile | — | **Connect DSR endpoint** on the handle; getfile segment `dsr` |
|
|
110
110
|
|
|
111
|
-
Resolve the exact Connect route
|
|
111
|
+
Resolve the exact Connect route through the routing tool's `describe`; only when no router is available,
|
|
112
|
+
use the verified-contract/`sf` fallback in `references/export-and-history.md`. Don't
|
|
112
113
|
`sf sobject describe DsarPolicy*` — the tree is metadata; only `DsarPolicyLog` answers standard
|
|
113
114
|
SOQL. On an MCP surface, each row is one `DsarPolicyManager` operation.
|
|
114
115
|
|
|
@@ -124,7 +125,7 @@ SOQL. On an MCP surface, each row is one `DsarPolicyManager` operation.
|
|
|
124
125
|
Mixed request → do the one asked; don't add an export to a configure, or a run to a history.
|
|
125
126
|
|
|
126
127
|
**Every workflow below assumes call #1 is already done** — you have routed through the discover/
|
|
127
|
-
describe/dispatch SOR tool (or confirmed none is in reach). The `sf
|
|
128
|
+
describe/dispatch SOR tool (or confirmed none is in reach). The `sf`
|
|
128
129
|
commands in each workflow are the *no-routing-tool* spelling; with the routing tool present, dispatch
|
|
129
130
|
the equivalent operation through it.
|
|
130
131
|
|
|
@@ -169,8 +170,8 @@ Endpoints, sample envelopes, poll/download sequence: `references/export-and-hist
|
|
|
169
170
|
Individual / Lead / User) — e.g. SOQL `Lead`/`Contact` by `Email`. Confirm the type **is a policy
|
|
170
171
|
root** (execute matches only the root subtree of the subject's type — a non-root subject exports
|
|
171
172
|
nothing). On **0 / many / non-root** matches, stop and report; never execute a guessed Id.
|
|
172
|
-
- **B1. Preconditions.** Policy must be **ACTIVE** (else route to A). Resolve DSR routes
|
|
173
|
-
`
|
|
173
|
+
- **B1. Preconditions.** Policy must be **ACTIVE** (else route to A). Resolve DSR routes through
|
|
174
|
+
the router's `describe`, or the verified-contract fallback in `references/export-and-history.md` when no router is available.
|
|
174
175
|
- **Pick the policy deliberately:** named → use it; else the in-context policy; if none is
|
|
175
176
|
established or **multiple ACTIVE could match**, **ask to confirm** (e.g. *"Run `<policy>` for
|
|
176
177
|
`<subject>` — confirm?"*). Never pick silently.
|
|
@@ -5,19 +5,21 @@ consent, poll-before-download) lives in `SKILL.md`; this file is the mechanics.
|
|
|
5
5
|
|
|
6
6
|
## Resolve the DSR routes at run time
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
salesforce-api-context # MCP: resolve the current DSR execute/status/getfile routes + API version
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Or discover via `sf`:
|
|
8
|
+
Resolve execute / status / getfile through the routing tool's `describe` and `dispatch` first.
|
|
9
|
+
Only when no routing tool is available, obtain the endpoint paths, methods, inputs, and handle
|
|
10
|
+
contract from the target release's Connect API documentation or a verified contract supplied by
|
|
11
|
+
the user, then discover the org's available API versions via `sf`:
|
|
16
12
|
|
|
17
13
|
```bash
|
|
18
14
|
sf api request rest '/services/data' --target-org <alias> # available API versions
|
|
19
15
|
```
|
|
20
16
|
|
|
17
|
+
Select a returned version supported by that contract; keep route placeholders below until verified.
|
|
18
|
+
`/services/data` lists versions, **not DSR routes**. Metadata XML schema assets do not discover
|
|
19
|
+
Connect endpoints either. If a route/handle contract cannot be verified, report the missing
|
|
20
|
+
capability and stop that operation — do not guess paths, probe by executing exports, or fall back
|
|
21
|
+
from an available router. The `DsarPolicyLog` SOQL status/history reads below remain available.
|
|
22
|
+
|
|
21
23
|
## Resolve the subject (B0) — before anything else
|
|
22
24
|
|
|
23
25
|
A portability request names the subject by **email / name / external id**, not a `dataSubjectId`.
|
|
@@ -27,14 +27,16 @@ authoritative map of guessed personal data.
|
|
|
27
27
|
(1) the **resolved subject** — identifier (email/name/id) → root-entity Id + type — and the
|
|
28
28
|
**policy chosen** (noting if it was ambiguous and you asked); (2) consent confirmed, or the run
|
|
29
29
|
withheld as ambiguous; (3) that this was an **export, not a deletion**; (4) the **poll ordering**
|
|
30
|
-
made explicit —
|
|
30
|
+
made explicit — execute, poll, interpret the envelope/run status, then retrieve the file only after terminal success;
|
|
31
31
|
an early not-ready response is expected, and if still non-terminal you **asked** the user before
|
|
32
32
|
continuing (never looped); stated even on the accepted preflight-error path; (5) outcome from the
|
|
33
33
|
**envelope / run status** in plain terms — running / completed / errored — not the HTTP code; (6)
|
|
34
|
-
file location on success (from the `dsr` getfile route, after terminal); (7) any missing
|
|
34
|
+
file location on success (from the `dsr` getfile route, after confirmed terminal success); (7) any missing
|
|
35
35
|
permission/feature named with the raw error. A non-terminal run is a valid stopping point — report
|
|
36
36
|
it as *still running* and defer to the user, don't diagnose the async backend.
|
|
37
37
|
|
|
38
|
+
Terminal failure is not permission to download. Read and report the outcome before deciding whether to call getfile; HTTP 201 alone does not establish success. Preserve this order in proposed commands as well as executed calls.
|
|
39
|
+
|
|
38
40
|
**Preflight-error path (feature/policy/subject absent — the run never started):** keep it short.
|
|
39
41
|
Lead with the blocker(s) and the prerequisite to unblock each; state export-not-deletion **once**;
|
|
40
42
|
state the poll-then-download ordering **once** (a single short paragraph — this is item 4, not a
|
|
@@ -3,18 +3,14 @@ name: platform-flexipage-generate
|
|
|
3
3
|
description: "Use when users create, generate, modify, or validate Salesforce Lightning pages (FlexiPages). Trigger on RecordPage, AppPage, HomePage, Lightning pages, adding components to a page, page customization (e.g. 'customize the record page'), or .flexipage-meta.xml files (regions, components, deployment errors). DO NOT TRIGGER for Visualforce pages, page layout assignments in the UI, UI Bundle/Experience Cloud site pages, or Aura/Lightning Web Component development without FlexiPage context."
|
|
4
4
|
allowed-tools: Bash Read Write
|
|
5
5
|
metadata:
|
|
6
|
-
version: "1.
|
|
6
|
+
version: "1.2"
|
|
7
7
|
domains: ["Platform"]
|
|
8
|
-
minApiVersion: "
|
|
8
|
+
minApiVersion: "68.0"
|
|
9
9
|
cliTools:
|
|
10
10
|
- tool: ["python3"]
|
|
11
11
|
semver: ">=3.10.0"
|
|
12
12
|
- tool: ["sf"]
|
|
13
13
|
semver: ">=2.126.4"
|
|
14
|
-
mcpTools:
|
|
15
|
-
metadata-experts:
|
|
16
|
-
tools: ["execute_metadata_action"]
|
|
17
|
-
semver: ">=1.0.0"
|
|
18
14
|
---
|
|
19
15
|
|
|
20
16
|
## When to Use This Skill
|
|
@@ -227,7 +223,7 @@ Complete each tier for ALL components before moving to the next tier — do NOT
|
|
|
227
223
|
| Tier | Source | When | Calls |
|
|
228
224
|
|------|--------|------|-------|
|
|
229
225
|
| **1** | Local workspace scan | Always first — run for ALL components | 0 (local only) |
|
|
230
|
-
| **2** | `discoverUiComponents`
|
|
226
|
+
| **2** | `discoverUiComponents` invocable action | Single call for all components unresolved after Tier 1 | 1 |
|
|
231
227
|
| **3** | Generate new LWC bundle | Only for components still unresolved after Tier 2 + user confirms | 0 |
|
|
232
228
|
|
|
233
229
|
After Tier 1 completes for all components, collect only the unresolved ones and pass them to Tier 2 in a single MCP call. Only components still unresolved after Tier 2 proceed to Tier 3.
|
|
@@ -279,14 +275,15 @@ sf project deploy start --dry-run -d "<packageDirectory>/main/default" --test-le
|
|
|
279
275
|
|
|
280
276
|
**Read `references/mcp_action_examples.md`** for full input/output examples and parameter tables.
|
|
281
277
|
|
|
282
|
-
Two
|
|
278
|
+
Two invocable actions, called with the `dispatch` MCP tool against `POST /services/data/<ver>/headless/invocableaction`. The body is `{ "action": "<action>", "inputs": { ... } }`; results come back under `outputs`:
|
|
283
279
|
|
|
284
280
|
| Action | Purpose | When |
|
|
285
281
|
|--------|---------|------|
|
|
286
|
-
| `
|
|
287
|
-
| `
|
|
282
|
+
| `discoverUiComponents-discoverUiComponents` | Find components for a page type | Tier 2 discovery — single call for all unresolved components |
|
|
283
|
+
| `getUiComponentSchemas-getUiComponentSchemas` | Get property schemas | Property inference Step 1 (Tier 2 org components only) |
|
|
288
284
|
|
|
289
285
|
**Key conventions:**
|
|
286
|
+
- `<ver>` is the API version: use `v68.0` or later. On earlier versions both calls fail with "apiVersion not supported in current API version"
|
|
290
287
|
- Component definition format: `namespace/blockName` (forward-slash) in MCP calls, `namespace:blockName` (colon) in XML
|
|
291
288
|
- `pageContext` with `entityName` is required for RECORD_PAGE
|
|
292
289
|
- `getUiComponentSchemas` supports partial failures — check each component's `success` boolean
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MCP Action Integration — Examples & Reference
|
|
2
2
|
|
|
3
|
-
Two
|
|
3
|
+
Two invocable actions provide component discovery and schema retrieval, called via the `dispatch` MCP tool. The API-version requirement and shared conventions are in SKILL.md → MCP Action Integration.
|
|
4
4
|
|
|
5
5
|
## discoverUiComponents
|
|
6
6
|
|
|
@@ -9,19 +9,19 @@ Discovers components available for a page type in the user's org.
|
|
|
9
9
|
**When to call:** Tier 2 discovery — after local scan finds no match.
|
|
10
10
|
|
|
11
11
|
**Input:**
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
```text
|
|
13
|
+
dispatch POST /services/data/<ver>/headless/invocableaction
|
|
14
|
+
body: {
|
|
15
|
+
"action": "discoverUiComponents-discoverUiComponents",
|
|
16
|
+
"inputs": {
|
|
17
|
+
"pageType": "RECORD_PAGE",
|
|
18
|
+
"pageContext": { "entityName": "Account" },
|
|
19
|
+
"searchQuery": "related list"
|
|
20
|
+
}
|
|
20
21
|
}
|
|
21
|
-
})
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
**Parameters
|
|
24
|
+
**Parameters** (all go in `inputs`):
|
|
25
25
|
|
|
26
26
|
| Param | Type | Required | Description |
|
|
27
27
|
|-------|------|----------|-------------|
|
|
@@ -32,14 +32,16 @@ execute_metadata_action({
|
|
|
32
32
|
**Output:**
|
|
33
33
|
```json
|
|
34
34
|
{
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
"outputs": {
|
|
36
|
+
"componentDefinitions": [
|
|
37
|
+
{
|
|
38
|
+
"definition": "lst/dynamicRelatedList",
|
|
39
|
+
"label": "Dynamic Related List",
|
|
40
|
+
"description": "Shows related records...",
|
|
41
|
+
"attributes": [{"name": "parentFieldApiName", "description": "..."}]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
43
45
|
}
|
|
44
46
|
```
|
|
45
47
|
|
|
@@ -60,20 +62,20 @@ Retrieves the full property schema for one or more components.
|
|
|
60
62
|
**When to call:** Tier 2 (org-discovered) components only — skip for Tier 1 (local) and Tier 3 (generated) components; read @api properties from source instead.
|
|
61
63
|
|
|
62
64
|
**Input:**
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
```text
|
|
66
|
+
dispatch POST /services/data/<ver>/headless/invocableaction
|
|
67
|
+
body: {
|
|
68
|
+
"action": "getUiComponentSchemas-getUiComponentSchemas",
|
|
69
|
+
"inputs": {
|
|
70
|
+
"pageType": "RECORD_PAGE",
|
|
71
|
+
"pageContext": { "entityName": "Account" },
|
|
72
|
+
"componentDefinitions": ["lst/dynamicRelatedList", "flexipage/richText"],
|
|
73
|
+
"includeKnowledge": true
|
|
74
|
+
}
|
|
72
75
|
}
|
|
73
|
-
})
|
|
74
76
|
```
|
|
75
77
|
|
|
76
|
-
**Parameters
|
|
78
|
+
**Parameters** (all go in `inputs`):
|
|
77
79
|
|
|
78
80
|
| Param | Type | Required | Description |
|
|
79
81
|
|-------|------|----------|-------------|
|
|
@@ -85,14 +87,16 @@ execute_metadata_action({
|
|
|
85
87
|
**Output:**
|
|
86
88
|
```json
|
|
87
89
|
{
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
"outputs": {
|
|
91
|
+
"componentSchemas": [
|
|
92
|
+
{
|
|
93
|
+
"definition": "lst/dynamicRelatedList",
|
|
94
|
+
"success": true,
|
|
95
|
+
"schema": "{...JSON Schema string...}",
|
|
96
|
+
"knowledge": "Optional guidance text for this component"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
96
100
|
}
|
|
97
101
|
```
|
|
98
102
|
|
|
@@ -6,7 +6,7 @@ metadata:
|
|
|
6
6
|
- data360-code-extension-generate
|
|
7
7
|
- platform-metadata-discovery-get
|
|
8
8
|
- platform-metadata-retrieve
|
|
9
|
-
version: "2.
|
|
9
|
+
version: "2.3"
|
|
10
10
|
accessCheck: "CDP.orgHasUnifiedCatalogProvisioned"
|
|
11
11
|
domains:
|
|
12
12
|
- "Platform"
|
|
@@ -56,7 +56,7 @@ The Salesforce MCP is shown in Setup today as the Headless360 (H360) MCP Server.
|
|
|
56
56
|
| Order | Server | How to call |
|
|
57
57
|
|---|---|---|
|
|
58
58
|
| 1 | Metadata Grounding MCP | Call `search_metadata`, `query_metadata`, or `describe_metadata` with the inputs below. |
|
|
59
|
-
| 2 | Salesforce MCP, when the Metadata Grounding MCP is not connected or keeps failing | Call `describe` on the operation id `searchMetadata`, `queryMetadata`, or `describeMetadata`. Do not use `discover`, and do not describe the grounding recipe, which is too large to read. Then call the path `describe` returns with the same inputs. Use `dispatch_readonly` for `searchMetadata` and pass the
|
|
59
|
+
| 2 | Salesforce MCP, when the Metadata Grounding MCP is not connected or keeps failing | Call `describe` on the operation id `searchMetadata`, `queryMetadata`, or `describeMetadata`. Do not use `discover`, and do not describe the grounding recipe, which is too large to read. Then call the path `describe` returns with the same inputs. Use `dispatch_readonly` for `searchMetadata` and pass `query` and the required `metadataType` as query parameters. Use `dispatch` for `queryMetadata` and `describeMetadata`, which are POST calls but only read, and pass the inputs as the JSON body. Do not use other metadata search operations. |
|
|
60
60
|
| Neither connected | | Grounding is not available. Use the name and label fallback in `platform-metadata-discovery-get`. |
|
|
61
61
|
|
|
62
62
|
## When a Call Fails
|
|
@@ -73,7 +73,7 @@ A missing tool, an access error, or a 404 is not proof that the metadata does no
|
|
|
73
73
|
|
|
74
74
|
| Call | Metadata Grounding MCP | Salesforce MCP |
|
|
75
75
|
|---|---|---|
|
|
76
|
-
| Search | `{results, totalCount}
|
|
76
|
+
| Search | Wrapped as `{defaultExc: "<json string>", responseCode}`. Parse `defaultExc` to read `{results, totalCount}`. | Payload in the response body, not wrapped |
|
|
77
77
|
| Describe and query | Wrapped as `{defaultExc: "<json string>", responseCode}`. Parse the `defaultExc` string to read `types`, `typeDetails`, or `records`. | Payload in the response body, not wrapped |
|
|
78
78
|
| Error | An array of `{errorCode, message}` | Same array in the response body |
|
|
79
79
|
|
|
@@ -97,19 +97,19 @@ Type names are case-sensitive, and some differ from Metadata API names.
|
|
|
97
97
|
|
|
98
98
|
Most other types use the Metadata API name, for example `ApexClass`, `ApexTrigger`, `Flow`, `PermissionSet`, `PermissionSetGroup`, `Profile`, `ValidationRule`, `RecordType`, `SharingRule`, `FieldPermissions`, `PicklistValue`, and `CustomPermission`.
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
Always call `describe_metadata` before searching. If you do not know the relevant catalog type, call it without a `metadataType` and read only the returned type names; the full response is about 29K characters. If you have a likely type, call describe with that `metadataType` to validate it and learn its properties and subtypes.
|
|
101
101
|
|
|
102
102
|
## Search
|
|
103
103
|
|
|
104
104
|
Inputs:
|
|
105
105
|
- `query`: required plain-language phrase. An empty query returns `ILLEGAL_QUERY_PARAMETER_VALUE`.
|
|
106
|
-
- `metadataType`:
|
|
107
|
-
- `
|
|
106
|
+
- `metadataType`: required catalog type name returned by `describe_metadata`. Search does not support an unfiltered cross-type call.
|
|
107
|
+
- `metadataSubTypes` (Metadata Grounding MCP): array of subtype names returned by describe. Required and nonempty when the type defines subtypes; omit it for types without subtypes. Include all relevant subtypes in one call.
|
|
108
108
|
- `parentIdentifier`: optional, to search inside one object or permission container.
|
|
109
109
|
- `limit`: 1 to 100, default 50. Use 10 to 20.
|
|
110
110
|
|
|
111
111
|
How to search well:
|
|
112
|
-
1. **
|
|
112
|
+
1. **Start with describe, then search with a type.** Call `describe_metadata` first, then pass a returned `metadataType` on every search. For broad questions, run a few typed searches on likely types, such as `SObject`, `SObjectField`, and `Flow`; include the relevant returned subtypes when the type defines them. Never make an unfiltered search.
|
|
113
113
|
2. **Search inside an object** by passing its returned identifier as `parentIdentifier`. First search `SObject` for the exact object API name, or reuse a field result's `parentIdentifier`, then copy the identifier unchanged. Never pass the raw object API name. This finds fields related to a topic. It is not a full field list.
|
|
114
114
|
3. **Try one more phrasing** with synonyms or likely labels before you report "no match found in the org catalog."
|
|
115
115
|
4. **Trust the service's exposure policy.** Do not infer visibility or support from API-name suffixes. Keep results relevant to the user's requested domain; intentionally exposed Data Cloud metadata must remain available when it is relevant.
|
|
@@ -47,19 +47,19 @@ H360 policy **create / read / update** run over the headless-360 MCP `/headless/
|
|
|
47
47
|
## Deterministic Workflow
|
|
48
48
|
|
|
49
49
|
1. Require `consumer`: accept only `DATACLOUD` or `ALL`; do not infer or default it.
|
|
50
|
-
2. Select the operating mode. Use normal author mode unless the request explicitly says to recreate a named retrieved evidence package exactly. In explicit evidence-recreation mode, the named API 69.0 example is authoritative: preserve its condition order, exact conjunctions, persisted `SCALAR_ATTRIBUTE`/`SOQLTARGETLISTEXPR` operands, and evidence values, while omitting `
|
|
50
|
+
2. Select the operating mode. Use normal author mode unless the request explicitly says to recreate a named retrieved evidence package exactly. In explicit evidence-recreation mode, the named API 69.0 example is authoritative: preserve its condition order, exact conjunctions, persisted `SCALAR_ATTRIBUTE`/`SOQLTARGETLISTEXPR` operands, and evidence values, while omitting `builderValidated` and keeping the evidence set's `builderCompatible` as retrieved. Exact recreation takes precedence over normal authoring rewrites and target-org re-resolution. It proves only evidence fidelity, not current-org authorability, runtime enforcement, or Policy Builder validation.
|
|
51
51
|
3. Identify the policy set developer name and rule developer name.
|
|
52
52
|
4. Choose the shared policy shape, category, effect, action, and resource scope **deterministically from the request signal** — do not ask the user "is this OLS/RLS/FLS?" when the signal is clear (read of a specific named object → RLS; hide a field → FLS; mask a field value → Transform; tag/classification tenant-wide → OLS). See `references/policy-shapes.md#selecting-the-shape-deterministic--do-not-ask-the-user`. Every renderable rule MUST carry **at least one resource condition** (principal conditions are optional; a zero-conditions or principal-only rule is not deployable/renderable) — if the shape has no valid resource condition (e.g. object-wide read with no row filter), obtain a resource condition or route object-wide read to the permission-set path (`platform-dataspace-access-configure`) rather than authoring an unrenderable rule.
|
|
53
53
|
5. In normal author mode, resolve every tag, classification, custom permission, DMO/DLO, field, resource domain, join field, and principal field in the target org through MCP — never through an `sf` CLI command. Resolve tags, classifications, dataspaces, and every resource object's schema and fields through the Data 360 MCP read-only lookup operations from `references/reference-resolution.md#data-360-mcp-lookup-operations`. Resource objects are not only DMOs — resolve custom/derived DMOs (the `__dlm` suffix that most `resourceDomains` entries target) via `d360_dmo_list`/`d360_dmo_get` (family `DataModelObject`), standard/canonical DMOs via `d360_data_model_objects_list`/`d360_data_model_object_get` (family `DataModelObjectCatalog`), raw ingested DLOs via `d360_dlo_list`/`d360_dlo_get`, and calculated insight objects (CIOs) via `d360_ci_list`/`d360_ci_get`. `d360_dmo_get` returns the DMO with all field definitions; pass `includeFields:"true"` to `d360_dmo_list`. Only when no Data 360 MCP session is reachable, resolve a custom `__dlm` DMO's field API names with a read-only headless-360 `dispatch_readonly` sObject describe as a last resort — it can miss `__dlm` objects that are absent from the sObjects surface, so prefer `d360_dmo_get` whenever Data 360 MCP is available. For custom permissions and ID-valued principal comparisons (e.g. `ProfileId`), for which no Data 360 MCP lookup exists, resolve read-only through `dispatch_readonly` (a SOQL `/query` or metadata read). The MCP path addresses the org implicitly and `/headless/metadata` resolves the API version server-side, so no `ORG_ID`/`ORG_API_VERSION` resolution is needed; evidence-recreation fixtures retain the `{API_VERSION}` placeholder for the eval harness. User-provided values may be developer names, fully qualified names, labels, or partial descriptions: resolve each to the exact target-org developer/API name before generating XML. A Data 360 MCP lookup result's `id` is not the value to persist unless the field itself is ID-valued (e.g. `ProfileId`). For STANDARD_TAG/STANDARD_CLASSIFICATION `<valueReference>` values, construct the dotted path per `references/reference-resolution.md#constructing-valuereference-for-standard_tag--standard_classification` — it is not a single-field copy from the lookup record. For other `<valueDomain>`/`<select>` values, take the resolved developer/API name from the same record. When a label or description matches a reference, retain the resolved developer/API name in the metadata and do not emit the label unless the schema explicitly requires a label. Never invent reference names, infer a developer name from a label, or reuse evidence-package values.
|
|
54
54
|
6. Construct the shared policy model from `references/condition-model.md`; reject `PLACEHOLDER` because it is internal-only.
|
|
55
55
|
7. In normal author mode, if `consumer=DATACLOUD`, apply `references/consumer-datacloud-ui.md`: build a typed custom-conjunction plan for the API/UI projection, serialize it as nested MDAPI `conjunctionExpression` `AND`/`OR` groups, enforce one action and one resource domain, reject plural principal attributes, and validate directional scalar/RLS capabilities. If `consumer=ALL`, apply only `references/consumer-all.md` and base validation; make no UI-renderability claim. In evidence-recreation mode, preserve the named example's exact conjunction instead of recompiling it.
|
|
56
|
-
8. Number conditions only after grouping is complete, validate complete conjunction coverage, then render XML. For evidence recreation, retain the evidence condition order and validate its existing numbering without rewriting it.
|
|
57
|
-
9. Author the set XML and the definition XML as two components
|
|
58
|
-
10. **Preview and confirm before writing.** The deterministic routing means no mid-flow clarifying questions; the single human checkpoint is here. Show the operator the resolved shape, target object/references, and the concrete rule (conditions + effect) and get an explicit go-ahead before the create/update dispatch. Then verify via the transport: flatten the generated `.policyRuleDefinitionSet`/`.policyRuleDefinition` XML to a single-line string (a defensive default — a properly-escaped multi-line `xmlRep` also persists, but single-line sidesteps any client that mangles newlines), `dispatch` a POST create (PUT for an update) to `/headless/metadata` for the set and then the rule, and `dispatch_readonly` GET each back to confirm a 2xx response. See `references/headless-transport.md` for the exact request/response shapes, the `xmlRep` newline guidance, and the transient-retry note. **UI-renderable-contract check:** the set read-back must carry
|
|
56
|
+
8. Number conditions only after grouping is complete, validate complete conjunction coverage (every top-level operand is a group, except a lone FLS/Transform `ENTITYTYPE IS FIELD` index — a lone permission or tag condition is still wrapped, e.g. FLS `(AND 1 (OR 2 3 4) (AND 5))`), then render XML. For evidence recreation, retain the evidence condition order and validate its existing numbering without rewriting it.
|
|
57
|
+
9. Author the set XML and the definition XML as two components. Author `<builderCompatible>true</builderCompatible>` on the set by default; omit it (or author `false`) only when the user explicitly asks for a non-builder-compatible policy. **ACCESS exception:** when the user explicitly requests the ACCESS category and the operator confirms API-only output (the `references/ui-compatibility.md` path), author `<builderCompatible>false</builderCompatible>` and keep the `# API-only:` marker in the description. Never author `builderValidated`. The MD-CRUD path takes each component's XML directly as `xmlRep` (see step 10) — no `package.xml`/manifest or `ORG_API_VERSION` interpolation is required. Eval fixtures retain the `{API_VERSION}` placeholder for the harness.
|
|
58
|
+
10. **Preview and confirm before writing.** The deterministic routing means no mid-flow clarifying questions; the single human checkpoint is here. Show the operator the resolved shape, target object/references, and the concrete rule (conditions + effect) and get an explicit go-ahead before the create/update dispatch. Then verify via the transport: flatten the generated `.policyRuleDefinitionSet`/`.policyRuleDefinition` XML to a single-line string (a defensive default — a properly-escaped multi-line `xmlRep` also persists, but single-line sidesteps any client that mangles newlines), `dispatch` a POST create (PUT for an update) to `/headless/metadata` for the set and then the rule, and `dispatch_readonly` GET each back to confirm a 2xx response. See `references/headless-transport.md` for the exact request/response shapes, the `xmlRep` newline guidance, and the transient-retry note. **UI-renderable-contract check:** the set read-back must carry the authored `<builderCompatible>true</builderCompatible>` (or `false` when the user opted out) and a server-set `<builderValidated>` — do not assert a specific `builderValidated` value (observed `true` alongside an authored `builderCompatible=true`; `false` when the flag was not authored). If `builderCompatible` reads back `false` although `true` was authored, the server normalized it: report that to the operator rather than retrying. `builderValidated` remains server-managed; never author it.
|
|
59
59
|
|
|
60
60
|
## Deleting a Policy
|
|
61
61
|
|
|
62
|
-
Delete a policy over the Data 360 MCP **Data Governance Access Policy** surface, **not** `/headless/metadata` — Core has no real metadata delete (a metadata DELETE 405s or no-ops), so it never belongs on that transport. A `PolicyRuleDefinitionSet` authored by this skill surfaces there as an **Access Policy** addressable by its developer name.
|
|
62
|
+
Delete a policy over the Data 360 MCP **Data Governance Access Policy** surface, **not** `/headless/metadata` — Core has no real metadata delete (a metadata DELETE 405s or no-ops), so it never belongs on that transport. A `PolicyRuleDefinitionSet` authored by this skill surfaces there as an **Access Policy** addressable by its developer name. Sets authored with the default `builderCompatible: true` appear in a plain `access_policy_list`; sets that were authored with the opt-out (or normalized to `false`) need `includeIncompatible: true` to show up. Either way, `access_policy_get` and `access_policy_delete` work by name regardless of builder-compatibility.
|
|
63
63
|
|
|
64
64
|
`d360_data_governance_access_policy_delete` takes a single `name` (the set's developer name) and is a **whole-policy delete**: one call removes the Access Policy **and every embedded rule** (its `PolicyRuleDefinition` members). There is therefore **no leaf-before-parent ordering** and **no discrete single-rule delete** — to drop one rule while keeping the policy, re-author the surviving rule set via `d360_data_governance_access_policy_rule_replace` instead. Confirm the delete by reading the policy back with `d360_data_governance_access_policy_get` by name: a not-found result (or the policy being absent from an `includeIncompatible` list) is the success signal. There is **no `sf` CLI fallback**.
|
|
65
65
|
|
|
@@ -79,6 +79,8 @@ The real example has:
|
|
|
79
79
|
|
|
80
80
|
For the validated field-level security deny shape, use `references/examples/FieldReadDeny/`: `GOVERNANCE_POLICY_RULE_DEFINITION`, `Forbid`, `Read`, and one entity-type discriminator whose right operand is `FIELD`. This example validates the deny shape; it does not establish that every other FLS shape is invalid.
|
|
81
81
|
|
|
82
|
+
**"Deny X unless the user has permission P" is authored as `!=`, never as `UNLESS`.** The Data Governance UI has no UNLESS section: it forces `unlessPolicyRuleDefinitionClauseConjunction` to null on save, so a policy that uses it deploys but will not open in Policy Builder. Cedar's `unless` is the natural reading of the request, so do not copy it. Keep the effect `Forbid` and express the exemption as a principal condition inside `whenPolicyRuleDefinitionClauseConjunction`: `principalPath=ASSIGNED_PERMISSIONS_PATH`, `operator=CONTAINS_NONE`, `valueReferenceType=CUSTOM_PERMISSION` (the UI's "user.permission != P"). Number it as its own `(AND n)` group. The same rewrite applies to `unless` on a tag (`TAG CONTAINS_NONE`) and on a record field (`RECORDFIELD NOT_EQUALS`). Worked shape: `references/policy-shapes.md`, section "Deny unless".
|
|
83
|
+
|
|
82
84
|
For the validated field-masking shape, use `references/examples/LastCharactersFieldMasking/`: `TRANSFORM_POLICY_RULE_DEFINITION`, `Transform`, `Read`, `FIELD` scope, an explicit `resourceTransform`, and one entity-type discriminator whose right operand is `FIELD`. The retrieved `LAST_N_CHARS_RESOURCE_TRANSFORM` uses a top-level `resourceExpression` of type `ARGLIST`; do not generalize its argument shape to other transforms.
|
|
83
85
|
|
|
84
86
|
For the validated row-level security shapes, use `references/examples/PrincipalFieldMatchRLS/` for direct record-field comparisons and `references/examples/ExistsJoinRLS/` for an `EXISTS` join block. Both use `RECORD_POLICY_RULE_DEFINITION`, `Permit`, `Read`, `RECORD` scope, and an exact target DMO in `policyRuleResourceDomains`. Resolve every DMO and field in the target org before authoring.
|
|
@@ -105,7 +107,7 @@ Dataspace-scoped OLS is parked and unsupported because the UI-retrieved referenc
|
|
|
105
107
|
- `references/examples/PrincipalFieldMatchRLS/`: semantic direct-comparison RLS evidence package.
|
|
106
108
|
- `references/examples/ExistsJoinRLS/`: semantic projection-join RLS evidence package.
|
|
107
109
|
|
|
108
|
-
The semantic examples are derived from retrieved server output and retain source-org-specific values.
|
|
110
|
+
The semantic examples are derived from retrieved server output and retain source-org-specific values. All five examples carry `<builderCompatible>true</builderCompatible>` on the set; `builderCompatible` is authored (step 9) and `builderValidated` is never authored. They prove persisted metadata shapes, not Policy Builder open/save compatibility or a public MDAPI enum contract. Treat them as evidence, not directly deployable templates. Do not copy persisted `builderValidated` values, IDs, references, or undocumented enum values into authored packages; resolve every org-specific value again, change component identities and requested policy values, and validate the result in the target org.
|
|
109
111
|
|
|
110
112
|
## Package Contract
|
|
111
113
|
|
|
@@ -122,4 +124,4 @@ Both the set and the rule take a human-readable `<label>`. The set's `<label>` c
|
|
|
122
124
|
|
|
123
125
|
The MD-CRUD path sends each component's XML as `xmlRep` and resolves the API version server-side, so no `package.xml`/manifest `<version>` and no `ORG_API_VERSION` interpolation are required. The `package.xml` shown above and the `<version>{API_VERSION}</version>` placeholder are retained only for the eval fixtures and as the logical component set. Historical evidence versions are provenance only. Never modify the caller's `sfdx-project.json` to set an operation-specific version.
|
|
124
126
|
|
|
125
|
-
|
|
127
|
+
Author `<builderCompatible>true</builderCompatible>` on every `PolicyRuleDefinitionSet` unless the user explicitly asks for a policy that is not builder-compatible (then omit it, or author `false`). For an explicitly requested ACCESS policy with operator-confirmed API-only output, author `false` and keep the `# API-only:` marker in the description. Never author `builderValidated`; it is server-managed and set by an actual Policy Builder validation.
|
|
@@ -17,12 +17,12 @@ The XML does not contain literal `<left>` or `<right>` elements. The operand typ
|
|
|
17
17
|
| Right reference or literal | `policyRuleValueSet` |
|
|
18
18
|
| Right record/domain value | `valueDomain` |
|
|
19
19
|
| Right principal-derived value | `valuePrincipalPath` |
|
|
20
|
-
| Clause polarity | `clause`
|
|
20
|
+
| Clause polarity | `clause` is always `WHEN`, inside `whenPolicyRuleDefinitionClauseConjunction` |
|
|
21
21
|
|
|
22
22
|
Every condition must be constructed in this order:
|
|
23
23
|
|
|
24
|
-
1.
|
|
25
|
-
2. Set `<clause>` to `WHEN
|
|
24
|
+
1. Use the `whenPolicyRuleDefinitionClauseConjunction` wrapper. Never author `unlessPolicyRuleDefinitionClauseConjunction`: the Data Governance UI has no UNLESS section and drops it on save. Express "unless X" as a `WHEN` condition with the negated operator (`ASSIGNED_PERMISSIONS_PATH CONTAINS_NONE`, `TAG CONTAINS_NONE`, `RECORDFIELD NOT_EQUALS`); see `policy-shapes.md` "Deny unless".
|
|
25
|
+
2. Set `<clause>` to `WHEN`.
|
|
26
26
|
3. Select the left path. Most conditions use one of `resourcePath`, `principalPath`, or `contextPath`; a record-field-to-principal comparison uses both `resourcePath=RECORDFIELD` and a principal expression.
|
|
27
27
|
4. Add a `resourceExpression` or `principalExpression` if the selected left operand requires an expression.
|
|
28
28
|
5. Select the operator valid for that operand.
|
|
@@ -8,7 +8,15 @@ For six conditions grouped as two entity-type checks, two principal checks, and
|
|
|
8
8
|
<conjunctionExpression>(AND (OR 1 2) (AND 3 4) (AND 5 6))</conjunctionExpression>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
**Top-level operator must always be `AND`.** Never emit a bare top-level `(OR 1 2)` — the UI treats it as `// ERROR: Unsupported rule!` and silently drops the rule — and never emit a bare top-level condition index (e.g. `3` instead of `(AND 3)`), which crashes the builder. `OR` is allowed only inside a single section's local group, never as (or at) the top level. Wrap every local group under a top-level `AND`: `(AND (OR 1 2))`, `(AND 3)`. See `ui-compatibility.md` for the full non-round-trip checklist.
|
|
11
|
+
**Top-level operator must always be `AND`.** Never emit a bare top-level `(OR 1 2)` — the UI treats it as `// ERROR: Unsupported rule!` and silently drops the rule — and never emit a bare top-level condition index for a tag/classification, permission, record-field or dataspace condition (e.g. `3` instead of `(AND 3)`), which crashes the builder — a lone permission or tag condition is still wrapped. **The one exception** is a solitary `ENTITYTYPE IS FIELD` condition in an FLS or Transform rule, which the builder itself persists bare (see `examples/FieldReadDeny` and `examples/LastCharactersFieldMasking`); the `OBJECT`/`FIELD` pair in OLS is still an `(OR 1 2)` group. `OR` is allowed only inside a single section's local group, never as (or at) the top level. Wrap every local group under a top-level `AND`: `(AND (OR 1 2))`, `(AND 3)`. See `ui-compatibility.md` for the full non-round-trip checklist.
|
|
12
|
+
|
|
13
|
+
FLS deny (field-only) with three alternative tags and a permission exemption — bare `ENTITYTYPE` (1), tag group (2-4), permission group (5):
|
|
14
|
+
|
|
15
|
+
```xml
|
|
16
|
+
<conjunctionExpression>(AND 1 (OR 2 3 4) (AND 5))</conjunctionExpression>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The permission exemption is a `CONTAINS_NONE` `ASSIGNED_PERMISSIONS_PATH` condition inside `when`, never an `UNLESS`. Leaving it as a bare `5` saves and deploys but the builder cannot open the policy.
|
|
12
20
|
|
|
13
21
|
Construction:
|
|
14
22
|
|
|
@@ -45,7 +45,15 @@ For an object-level TupleRead policy with two entity-type alternatives, two alte
|
|
|
45
45
|
(AND (OR 1 2) (OR 3 4) (AND 5))
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
For a field-level (FLS) deny with alternative tags and a permission exemption, the single `FIELD` entity-type condition is persisted bare and every other section is grouped:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
(AND 1 (OR 2 3 4) (AND 5))
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Here `1` is `ENTITYTYPE IS FIELD` (the only condition that may stay bare, as in `examples/FieldReadDeny`), `(OR 2 3 4)` is `TAG_CLASSIFICATION`, and `(AND 5)` is `PERMISSION`. A bare `5` is the common mistake: it persists but Policy Builder cannot open the rule.
|
|
55
|
+
|
|
56
|
+
In the OLS example above, `(OR 1 2)` is the `ENTITY_TYPE` group, `(OR 3 4)` is the `TAG_CLASSIFICATION` group, and `(AND 5)` is the `PERMISSION` group. If the policy is RLS, its direct field or `EXPRESSION` conditions form the `RECORD_FIELD` group instead of being mixed into the tag or permission group. The numbers are assigned only after final condition ordering.
|
|
49
57
|
|
|
50
58
|
## Shape Restrictions
|
|
51
59
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<PolicyRuleDefinitionSet xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
-
<builderCompatible>
|
|
4
|
-
<builderValidated>false</builderValidated>
|
|
3
|
+
<builderCompatible>true</builderCompatible>
|
|
5
4
|
<label>ExistsJoinRLS</label>
|
|
6
5
|
</PolicyRuleDefinitionSet>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<PolicyRuleDefinitionSet xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
-
<builderCompatible>
|
|
4
|
-
<builderValidated>false</builderValidated>
|
|
3
|
+
<builderCompatible>true</builderCompatible>
|
|
5
4
|
<label>FieldReadDeny</label>
|
|
6
5
|
</PolicyRuleDefinitionSet>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<PolicyRuleDefinitionSet xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
-
<builderCompatible>
|
|
4
|
-
<builderValidated>false</builderValidated>
|
|
3
|
+
<builderCompatible>true</builderCompatible>
|
|
5
4
|
<label>LastCharactersFieldMasking</label>
|
|
6
5
|
</PolicyRuleDefinitionSet>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<PolicyRuleDefinitionSet xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
-
<builderCompatible>
|
|
4
|
-
<builderValidated>false</builderValidated>
|
|
3
|
+
<builderCompatible>true</builderCompatible>
|
|
5
4
|
<label>PrincipalFieldMatchRLS</label>
|
|
6
5
|
</PolicyRuleDefinitionSet>
|