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/resolve-id-by-name.js
View on GitHub#!/usr/bin/env node
/**
* Resolve a record's Id by an exact-match Name query, safely — the Name
* value is escaped (see soql-escape.js) before being embedded in the SOQL
* literal, so a Name containing a quote (or a crafted injection payload)
* can't break out of it or inject additional clauses. Callers never build
* this WHERE clause by hand.
*
* Usage:
* node resolve-id-by-name.js --target-org <username> --object <ObjectApiName> --name "<value>"
*
* Prints the `sf data query --json` result verbatim to stdout.
*/
const { execFileSync } = require('child_process');
const { escapeSoqlLiteral } = require('./soql-escape');
function parseArgs(argv) {
const args = {};
for (let i = 0; i < argv.length; i += 1) {
if (!argv[i].startsWith('--')) continue;
args[argv[i].slice(2)] = argv[i + 1];
i += 1;
}
return args;
}
function main() {
const args = parseArgs(process.argv.slice(2));
const targetOrg = args['target-org'];
const object = args['object'];
const name = args['name'];
if (!targetOrg || !object || name === undefined) {
console.error('Usage: resolve-id-by-name.js --target-org <username> --object <ObjectApiName> --name "<value>"');
process.exit(2);
}
const query = `SELECT Id, Name FROM ${object} WHERE Name = '${escapeSoqlLiteral(name)}'`;
const output = execFileSync(
'sf',
['data', 'query', '--target-org', targetOrg, '--json', '--query', query],
{ encoding: 'utf8' }
);
process.stdout.write(output);
}
main();
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 |