forcedotcom/sf-skills

consumer-goods-tpe-dashboard-configure

End-to-end headless setup of Trade Promotion Effectiveness (TPE) dashboards for a Trade Promotion Management (TPM) Cloud org, covering tenant pairing checks, permission sets, SSOT and Tableau Next enablement, C360 SDM verification, the TPM Accruals data kit…

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Consumer Goods TPE Dashboard Configure

Bring a TPM org from bare state to a running TPE dashboard in one guided session, driven entirely by sf CLI + REST/anonymous-Apex against an already-authenticated org — never a password or interactive login on the user's behalf.

Persona: a Salesforce TPM System Admin setting up TPE dashboards for their org.

Delegates three of its twelve steps to standalone sibling skills (own SKILL.md, own inputs, self-contained per this repo's skills architecture rules — no shared files):

  • Step 7 → consumer-goods-tpe-datakit-deploy
  • Step 9 → consumer-goods-rtr-datacloud-export-configure
  • Step 12 → consumer-goods-tpe-dashboard-custom-kpi-configure (optional, only if the customer wants custom KPIs on the base dashboards)

Every other step runs directly in this skill.

Inputs to collect first

Ask before starting. Do not guess.

  1. TPM System Admin username — must already be authenticated via sf CLI. Verify with node ./scripts/sf-rest.js org-status --target-org <username> (never sf org display --json directly — see references/phases-1-6.md).
  2. Dry-run? — offer by default. In dry-run, every read/verify/check step still runs; every write/trigger/install step is skipped and recorded as pending — not run (dry-run).

Also detect the installed package namespace and version-gate the org (Consumer Goods Cloud >= 262.2 required) before Phase 1 — see "Namespace detection" in references/phases-1-6.md.

Phase list

PhaseStepSummaryDetails
SetupCollect inputs, detect namespace, version-gate the orgreferences/phases-1-6.md
1Tenant pairingAsk user to confirm Hyperforce Processing Service pairing (not verifiable programmatically)references/phases-1-6.md
2TPM Admin permission set(s)Ask user to confirm org-specific persona permission sets are assignedreferences/phases-1-6.md
3GenieAdmin / TableauEinsteinAdminQuery, and on confirmation assign, these two permission setsreferences/phases-1-6.md
4SSOT packageVerify the ssot managed package is installedreferences/phases-1-6.md
5Enable Tableau NextAsk user to confirm manual UI enablement (not verifiable programmatically)references/phases-1-6.md
6C360 SDMVerify or trigger + poll the C360 Unified Semantic Model app installreferences/phases-1-6.md
7TPM Accruals Data KitDelegated to consumer-goods-tpe-datakit-deployreferences/phases-7-12.md
8Business Period exportAnonymous-Apex export via a Hyperforce-substrate Sales Org, poll, then confirm the tpmbusinessperiod Data Stream syncreferences/phases-7-12.md
9RTR Data Cloud exportDelegated to consumer-goods-rtr-datacloud-export-configurereferences/phases-7-12.md
10TPMPROMOTIONMEASURE Data TransformAsk (credit consumption), then run and poll the Data Transformreferences/phases-7-12.md
11TPE Analytics App installTrigger + poll the async app-framework install (~15-20 min)references/phases-7-12.md
12Customize KPIs (optional)Delegated to consumer-goods-tpe-dashboard-custom-kpi-configure, only if requestedreferences/phases-7-12.md

references/phases-7-12.md also documents the shared scripts/poll-status.js poller and the full set of hard Rules (never authenticate on the user's behalf, never hardcode a namespace or Sales Org, never claim success on anything but a terminal success status, a poll timeout is not a failure, etc.) that apply across every phase.

Scripts

  • scripts/sf-rest.js — authenticated REST calls; also exposes org-status (strips accessToken before printing).
  • scripts/poll-status.js — generic async-status poller, reused by Phases 6 and 11.
  • scripts/find-failure-reason.js — extracts the actual per-requirement failure reason for a FailedStatus app-framework install (Phase 11), including "DMO not available" detection.
  • scripts/render-apex.js — renders an anonymous-Apex template with --var substitutions; loads scripts/soql-escape.js to escape substituted literals.
  • scripts/soql-escape.js — escapes a value for safe interpolation into a single-quoted SOQL/Apex string literal.
  • scripts/run-data-transform.js — triggers and polls a named Data Transform (Phase 10).
  • scripts/schedule-business-period-export.apex — anonymous-Apex template for Phase 8.

Report

At the end of a run, give the user a structured status per phase (1-12): pass / blocked / pending, with the specific blocking reason and remediation click-path where applicable. Call out anything skipped due to dry-run, a declined confirmation, or (Phase 12) the customer opting out of KPI customization.

来自同一仓库

更多 Skills

全部 Skills
forcedotcom
社区

education-cloud-multi-campus-configure

Use this skill when a Salesforce Administrator needs to create OR maintain an institutional hierarchy for Education Cloud by parsing organizational structure from a PDF, URL, text, or CSV. On a first run it creates System, Campus, College, and Department Account records linked via ParentId plus 1:1 Business Profile records. On later runs it reconciles the org's existing hierarchy against the desired structure and applies only the delta — adding new units, renaming, or moving a node under a different parent — never recreating what exists. TRIGGER when the user wants to set up, configure, build, update, restructure, or reorganize a multi-campus structure, institutional hierarchy, or account hierarchy with business profiles; or add, rename, or move a campus, college, or department. DO NOT TRIGGER for single-campus flat setups without hierarchy levels, one-off manual account creation, or non-Education-Cloud account management.

安装量
2
GitHub Stars
976
最近更新
9月8日
forcedotcom
社区

automation-sandbox-post-copy-config-generate

Generate the JSON config file that the Salesforce sandbox post-copy automation tool consumes, from a customer SOP in any format (PDF, xlsx, csv, JSON, docx, Markdown, plain text, or a screenshot of an endpoint table). Use when the user asks to create, build, generate, produce, or convert a post-copy or post-refresh automation config — turning a sandbox-refresh SOP into a JSON array of OutboundMessages and RemoteSiteSettings entries with ConfigurationName, Label, Fields, IsActive, and ExecutionOrder. Also trigger for phrasings like \"post-copy config\", \"post-refresh automation JSON\", \"update the outbound message (OBM) endpoints after refresh\", \"convert this SOP to config\", \"remote site settings JSON\", \"refresh planner to JSON\", or \"sandbox refresh config\". DO NOT TRIGGER when: user wants to deploy the generated config to an org (use platform-metadata-deploy), or apply/execute/run/dry-run the post-copy automation JSON against a sandbox (use automation-sandbox-post-copy-configure).

安装量
1
GitHub Stars
976
最近更新
9月8日
forcedotcom
社区

commerce-b2b-open-code-components-integrate

Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\", \"open source B2B commerce\", \"add open code components\", \"forcedotcom/b2b-commerce-open-source-components\", or want to add open source commerce components to their store. Copies all components and labels so they become available in Experience Builder.

安装量
1
GitHub Stars
976
最近更新
9月8日
forcedotcom
社区

commerce-b2b-open-code-components-replace

Replace OOTB (out-of-the-box) B2B Commerce components with open source equivalents in site metadata content.json files, or look up the equivalent open code site: component for OOTB definitions. Use when users mention \"replace OOTB components\", \"replace commerce components with open code\", \"swap OOTB for open source\", \"replace commercebuilder:\", \"replace OOTB in site\", \"replace component in site metadata\", \"replace component definition\", \"find open code equivalent\", \"equivalent open code component\", \"OOTB to open code mapping\", \"what is the site component for\", components \"in this view\" or \"for a given view\", or a specific list of component names — and want to update or only discover mappings in their store metadata.

安装量
1
GitHub Stars
976
最近更新
9月8日