developing-datacloud-code-extension

Develop and deploy Salesforce Data Cloud Python code extensions via SF CLI workflows.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/sf-skills --skill developing-datacloud-code-extension
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developing-datacloud-code-extension
Source: https://github.com/forcedotcom/sf-skills/tree/main/skills/developing-datacloud-code-extension
Command: npx skills add https://github.com/forcedotcom/sf-skills --skill developing-datacloud-code-extension

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the challenge of developing and deploying Salesforce Data Cloud Python transformations with the correct scaffolding, permissions configuration, local testing workflow, and deployment packaging.

Core Features & Use Cases

  • Initialize Data Cloud code extension projects using the SF CLI plugin for either script-based (batch) or function-based (real-time) transformations.
  • Develop transformation logic that reads from DLO/DMO and writes transformed results back to Data Cloud.
  • Scan to generate permissions and configuration so you can validate what access the extension needs before you run or deploy.
  • Test locally against an authenticated org and then deploy to Data Cloud with the correct payload directory layout.

Example: You create a Python transformation that uppercases a field from an input DLO, run scan to generate config.json, test it locally using your target org, and then deploy the extension for execution in Data Cloud.

Quick Start

Use the skill to initialize a new extension project by running: sf data-code-extension script init --package-dir .

Frequently Asked Questions about developing-datacloud-code-extension

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

FAQPage Schema
How do I build and deploy Salesforce Data Cloud Python transformations?

To build and deploy Data Cloud Python transformations, you scaffold a project using the SF CLI data code extension plugin, develop batch or real-time logic, scan for permissions, test locally, and deploy via a payload directory.

How does the scan process work for Data Cloud code extensions?

The scan process generates the necessary permissions and configuration files, such as config.json, to validate what Data Cloud DLO and DMO access the extension requires before you run or deploy it.

Do I need Docker and Python 3.11 to develop Data Cloud custom code?

Python 3.11 and the Data Cloud custom code SDK are required to develop custom code, while Docker is optional and specifically needed for the deploy workflow to package the extension correctly.

What is the difference between script-based and function-based Data Cloud transformations?

Script-based transformations handle batch processing, whereas function-based transformations process real-time data, both reading from DLOs or DMOs and writing transformed results back to Data Cloud.

How do I test Data Cloud custom code locally before deploying?

You test Data Cloud custom code locally by running the extension against an authenticated Salesforce org to verify the transformation logic and permissions before executing the deployment workflow.

Why does my Data Cloud code extension deployment fail due to packaging?

Data Cloud code extension deployments require strict packaging via the payload directory layout, and failing to structure your project files correctly in this directory will cause the deployment to fail.