forcedotcom/sf-skills / plugins/builder/consumer-goods/skills/consumer-goods-rtr-datacloud-export-configure
consumer-goods-rtr-datacloud-export-configure
VerifiedConfigure a Trade Promotion Management (TPM) org's RTR (Real Time Reporting) export pipeline to push promotion measures into Data Cloud (Data 360) for Trade Promotion Effectiveness (TPE) dashboards. Use when a customer or admin wants to set up the RTR export for Data Cloud measures, configure the RTR report for TPE, or as a delegated step from consumer-goods-tpe-dashboard-configure.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.8 KB |
| references/inputs-and-namespace.md | markdown | 5.3 KB |
| references/procedure.md | markdown | 16.8 KB |
| scripts/detect-namespace.jsexecutable | script | 2.3 KB |
| scripts/render-apex.jsexecutable | script | 2.0 KB |
| scripts/resolve-id-by-name.jsexecutable | script | 1.5 KB |
| scripts/sf-rest.jsexecutable | script | 5.7 KB |
| scripts/soql-escape.jsexecutable | script | 882 B |
| scripts/upsert-report-config.apex | other | 2.3 KB |
| scripts/upsert-system-setting.apex | other | 722 B |
scripts/upsert-system-setting.apex
View on GitHub// Idempotent upsert of the Data_Cloud_Enabled System_Setting__c row.
// Query-then-upsert instead of `sf data upsert record` — that CLI subcommand
// only supports bulk/resume CSV, not a single record. Placeholder:
// %NS% -> namespace field prefix, e.g. "cgcloud_dev__" (empty for source org)
List<%NS%System_Setting__c> existing = [
SELECT Id
FROM %NS%System_Setting__c
WHERE Name = 'Data_Cloud_Enabled'
WITH USER_MODE
LIMIT 1
];
%NS%System_Setting__c row;
if (existing.isEmpty()) {
row = new %NS%System_Setting__c();
row.Name = 'Data_Cloud_Enabled';
} else {
row = existing[0];
}
row.%NS%Value__c = 'true';
upsert as user row;
System.debug(LoggingLevel.INFO, 'RTR_DATACLOUD_SETTING_ID=' + row.Id);
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |