data360-code-extension-generate

Develop, test, and deploy Python code extensions to Salesforce Data Cloud via SF CLI.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Build --skill data360-code-extension-generate-padjei
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data360-code-extension-generate
Source: https://github.com/padjei/SF_Build/tree/main/.claude/skills/data360-code-extension-generate
Command: npx skills add https://github.com/padjei/SF_Build --skill data360-code-extension-generate-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires salesforce-data-customcode, @salesforce/plugin-data-codeextension, and includes references (resource) components.

What problem does it solve? Building custom Python transformations for Salesforce Data Cloud requires coordinating the SF CLI plugin, the Data Cloud Custom Code SDK, permission scanning, local testing, and Docker-based deployment, which is error-prone without a guided workflow. ## Core Features & Use Cases - Project Scaffolding: Initialize script-based (batch) or function-based (real-time) code extension projects with the correct payload directory structure. - Permission Scanning and Local Testing: Auto-detect DLO/DMO read and write permissions into config.json, validate DLO schemas, and run transformations locally against a real org. - Versioned Deployment: Deploy code extensions to Data Cloud with CPU sizing, semantic versions, and descriptions for scheduled or on-demand execution. - Use Case: Create a transformation that reads an Employee DLO, uppercases the position field, and writes results to a new DLO, then test it locally and deploy it as a scheduled Data Cloud transform. ## Quick Start Create a new Data Cloud code extension project called employee-transform that reads from Employee__dll and writes an uppercased position field to Employee_Upper__dll.

Frequently Asked Questions about data360-code-extension-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Data Cloud code extension in Python?▼

Run sf data-code-extension script init --package-dir <directory> to scaffold a project, then edit payload/entrypoint.py using the datacustomcode Client to read and write DLOs. Scan, test locally, and deploy with the SF CLI plugin.

How do I deploy a Data Cloud code extension with SF CLI?▼

Use sf data-code-extension script deploy with --target-org, --name, --package-version, --description, and --package-dir ./payload. The --package-dir must point to the payload directory, not the project root, and Docker must be running.

What Python version does Data Cloud custom code require?▼

Data Cloud code extensions require Python 3.11 exactly. Use pyenv to install and pin version 3.11.0 if your system default differs, since other versions cause runtime mismatches.

Why does my code extension deploy fail with a directory error?▼

Deployment fails when --package-dir points to the project root instead of the payload directory created by init. Run deploy from the project root with --package-dir ./payload so the CLI packages entrypoint.py and config.json correctly.

Can I test a Data Cloud code extension locally before deploying?▼

Yes, run sf data-code-extension script run --entrypoint ./payload/entrypoint.py --target-org <alias> to execute locally. It runs against real Data Cloud data, so validate DLO schemas and field names first.

How do I fix DLO not found errors in Data Cloud transformations?▼

Verify the DLO exists in the target org and that the name matches exactly, including the __dll suffix and case-sensitive field names. Re-run the scan command to regenerate config.json permissions after fixing references.