Data Transforms
Data transforms through the native API and sf-plugin-data: the standard CLI has no transform type, the API reads, creates, replaces and deletes them, and the plugin keeps them as files.
Last updated: .
This badge does not verify untested writes or general CRUD support.
A data transform reads one or more objects, changes the rows and writes them to output objects. A batch transform runs on a schedule or on demand; a streaming transform processes rows as they arrive. The definition is either an STL node graph (what the visual editor saves) or DCSQL (a SQL statement).
Example used in every chapter: CustomerCopy, a batch STL transform that copies Id__c and Name__c from the DLO CustomerSource__dll to the existing DLO CustomerCopy__dll, in the default data space. Check your own objects and fields first.
| Read | Create | Update | Delete |
|---|---|---|---|
Yes
|
Yes
|
Yes
|
Yes
|
| Method | Read | Create | Update | Delete |
|---|---|---|---|---|
| CLI | Not supported | Not supported | Not supported | Not supported |
| API | Yes
|
Yes
|
Yes
|
Yes
|
| sf-plugin-data | Yes
|
Yes
|
Yes
|
Yes
|
Yes: a usable scoped workflow is supplied. For Read, Yes also requires
reading every item of the type without naming each one; a route that only reads named items is
Partial. Partial: a usable
workflow is supplied, but some operation variants, independent steps or asynchronous completion
remain unsupported or unqualified. Neither means universal capability. No: proven
unavailable in an explicit scope. Not supported: tested in the stated scope and not supported.
Not tested: nothing has been tested or researched here. Neither
Not supported nor Not tested displays method icons.
means
dedicated CLI commands;
means
API-led requests or facades, even when invoked through the CLI.
means a proven scoped sf-plugin-data workflow. The sf-plugin-data grade follows the plugin
README's definition: a refusal or gap in the plugin itself is Partial; Salesforce limits,
API-version and data-space limits and verification breadth are not. Multiple icons identify
alternatives, not equivalent coverage. Where method grades are recorded, the overall rating uses the best single
supported route: Yes before Partial, then ?; No requires every method explicitly No. Partial
routes are not combined into Yes. The method table records each route separately; older pages
without method grades do not imply equal coverage. Version and prerequisite limits still apply to
Yes. Read each operation's prerequisites and limits. An available operation tab may explain an
illustrative mechanism without supplying a usable summary workflow.
Plugin qualification: The plugin has sf data360 commands for transform definitions and schedules, at API 68 (auto or 68.0) in any data space (--dataspace, default when omitted). It sends a transform of any owner and Salesforce decides: Salesforce refuses writes to the system transforms a data graph creates, and the plugin reports that answer as rejected. Writes to transforms with a namespace from a package are not tested. The plugin never starts or cancels a run, but a schedule it deploys makes the transform run in the target org.
Plugin flags used on this page (sf data360 retrieve, deploy and delete): -m data-transform:Name (or a bare -m data-transform on retrieve), --source-dir / -d and --changed-since <git-ref> to select files for deploy, --preview (read-only for deploy and delete) and --keep-local-files (delete only). No flag acknowledges processing.
Read
CLI
Not supported. Salesforce CLI 2.151.7 has no DataTransform metadata type: sf project retrieve start stops with a RegistryError. sf org list metadata lists the names of user-built transforms only.
Metadata API
Not supported. At API 68.0, describeMetadata lists no transform type. listMetadata on DataTransform lists names of user-built transforms, but readMetadata returns only the name and retrieve returns no file.
Connect API
Native API68 list, read by name or record ID, and schedule read.
Native API68 read
Lists the transforms, reads one by name (or by record ID) and reads its schedule. Nothing in the org changes.
sf api request rest '/services/data/v68.0/ssot/data-transforms' --target-org SOURCE_ALIAS --method GET --include
sf api request rest '/services/data/v68.0/ssot/data-transforms/CustomerCopy' --target-org SOURCE_ALIAS --method GET --include
sf api request rest '/services/data/v68.0/ssot/data-transforms/CustomerCopy/schedule' --target-org SOURCE_ALIAS --method GET --include
The list answers { "currentPageUrl", "dataTransforms": [], "errors": [], "totalSize" }, 20 transforms per page, newest first. It includes system transforms, such as the hidden ones a data graph creates.
The item read holds everything the transform input holds, plus id, creationType (CUSTOM for your own), status, lastRunStatus, the dates, actionUrls for run, cancel, retry and refresh-status, and for each output object its ID, status and the keyQualifierField of each field.
The schedule route answers one of these shapes:
- No schedule:
{ "frequency": "None", "nextScheduledDate": null, "time": null, "type": "None" }, or{ "schedule": {}, "type": "Transform" }. - Daily:
{ "frequency": "Daily", "interval": 1, "nextScheduledDate": "…", "time": { "hour": 3, "minute": 15, "timezone": { "gmtOffset": 0, "name": "…", "zoneId": "GMT" } }, "type": "Daily" }. - System transform of a data graph:
{ "schedule": { "<graph Day0 name>": { "daysOfWeek": ["Wednesday"], "frequency": "Weekly", … } }, "type": "Transform" }, the graph’s weekly refresh.
A system transform reads creationType SYSTEM and createdBy Automated Process, and its definition reads only { "type": "STL_HIDDEN", "version": "68.0" }.
sf-plugin-data
Retrieves every transform or one by name, with its schedule, including system and packaged transforms.
Saves transforms as files in your project. A bare -m data-transform retrieves every transform the API lists (20 per page); -m data-transform:Name retrieves one. A retrieve without -m includes every transform as well:
sf data360 retrieve -m data-transform:CustomerCopy -o SOURCE_ALIAS
sf data360 retrieve -m data-transform -o SOURCE_ALIAS
The file is data360/dataTransforms/CustomerCopy.dataTransform.json:
{
"schemaVersion": 1,
"kind": "data-transform",
"apiVersion": "68.0",
"definition": {
"name": "CustomerCopy",
"label": "Customer Copy",
"description": "Copies customer rows",
"type": "BATCH",
"dataSpaceName": "default",
"fullRunFrequency": "DAILY",
"definition": { "type": "STL", "version": "68.0", "nodes": { "LOAD0": { "…": "…" }, "OUT0": { "…": "…" } } }
},
"schedule": { "frequency": "Daily", "interval": 1, "time": { "hour": 3, "minute": 15, "timeZone": "GMT" } }
}
The file holds the transform as Salesforce returns it: name, label, description, type, data space, full-run frequency, and the definition (definition, or definitions for one entry per output). STL node graphs, DCSQL manifests, several outputs, the write mode and the output object definitions stay as Salesforce returns them. Left out are the record ID, dates and status of each output object. A transform built in the Data Cloud UI has no dataSpaceName and uses definitions; its file keeps that form.
schedule holds the transform’s schedule from its own route, reduced to the keys a schedule change takes: frequency, interval, daysOfWeek (hourly), and time with hour, minute and timeZone. The next run time and the schedule type are left out. A transform without a schedule gets no schedule key, so deploying its file never changes the schedule in the target org. If the schedule cannot be read, the file has no schedule either and the retrieve warns.
System transforms, such as the ones a data graph creates, and transforms with a namespace are saved like your own. A system transform’s definition reads only as { "type": "STL_HIDDEN", "version": "68.0" }, and its schedule holds one weekly entry per definition, named after the graph.
Create
CLI
Not supported. Salesforce CLI 2.151.7 resolves deploy through the same metadata registry, which has no DataTransform type, so it cannot send a transform.
Metadata API
Not tested. Not tested: readMetadata returns only the name of a transform, so there is no definition to deploy.
Connect API
Native API68 POST of a batch STL or DCSQL transform, in the API form or the form the UI saves.
Native API68 create
Creates the transform from a JSON body. Check that the name is free and that the source and output DLOs exist.
sf api request rest '/services/data/v68.0/ssot/data-transforms' --target-org TARGET_ALIAS --method POST --body '@transform-create.json' --include
Save transform-create.json:
{
"name": "CustomerCopy",
"label": "Customer Copy",
"description": "Copies customer rows",
"type": "BATCH",
"dataSpaceName": "default",
"definition": {
"type": "STL",
"version": "68.0",
"nodes": {
"LOAD0": {
"action": "load",
"parameters": { "dataset": { "name": "CustomerSource__dll", "type": "dataLakeObject" }, "fields": ["Id__c", "Name__c"] },
"sources": []
},
"OUT0": {
"action": "outputD360",
"parameters": {
"name": "CustomerCopy__dll",
"type": "dataLakeObject",
"writeMode": "OVERWRITE",
"fieldsMappings": [
{ "sourceField": "Id__c", "targetField": "Id__c" },
{ "sourceField": "Name__c", "targetField": "Name__c" }
]
},
"sources": ["LOAD0"]
}
}
}
}
The answer is HTTP 201 with the whole transform. In a live test it read ACTIVE at the next GET, with creationType CUSTOM, lastRunStatus NONE, fullRunFrequency DAILY and no schedule. A create starts no run.
The form the UI saves is accepted too: no dataSpaceName, and definitions with one entry that has its own name, label and description. Salesforce stores the STL version as 68.0 even when 56.0 is sent. A DCSQL definition and an output declared in outputDataObjects make Salesforce create the output DLO; it stays after the transform is deleted.
sf-plugin-data
Creates the transform by name when the org has none; Salesforce validates the definition.
Deploy creates the transform when the org has none of that name. Preview first; the preview only reads:
sf data360 deploy -m data-transform:CustomerCopy --preview -o TARGET_ALIAS
sf data360 deploy -m data-transform:CustomerCopy -o TARGET_ALIAS
Deploy also selects the file with --source-dir, by file or folder, or through --changed-since. One deploy takes several transforms, alone or beside other families.
Deploy reads the complete transform list and looks for the name in the file, ignoring letter case. No match creates the transform with one POST, after Salesforce’s validation. Two or more matches are refused with TRANSFORM_TARGET_NOT_RESOLVED, and a match whose name differs only in letter case is refused with TRANSFORM_IDENTITY_MISMATCH, both before any write. The result reports TRANSFORM_SERVER_PROCESSING while Salesforce still processes the new transform.
The plugin only checks that the file is plain JSON with a valid name, exactly one of definition and definitions, only keys the transform input takes, and, when the file names a data space, that it is the run’s space. Everything else is sent as written and Salesforce decides. Salesforce refuses, for example, an STL output DLO that does not exist, an output that is also the source DLO, and a streaming transform with an STL definition. A DCSQL definition creates the output DLOs it declares; that DLO stays when the transform is deleted.
A schedule in the file is set with the schedule route once the new transform is no longer PROCESSING, then read back. Salesforce refuses a schedule on a transform that is not active, so the plugin reads the new transform every 5 seconds for up to 5 minutes first. The result carries TRANSFORM_SCHEDULE_CHANGE: the new transform runs on that schedule in the target org. If the transform is still processing after the wait, the schedule is not sent (TRANSFORM_SCHEDULE_NOT_SENT); if Salesforce refuses it, the result says so with Salesforce’s message (TRANSFORM_SCHEDULE_REJECTED). In both cases the transform was created and only the schedule is missing; rerun the deploy to send it. TRANSFORM_SCHEDULE_NOT_SENT exits 69 (still processing) when nothing else failed; TRANSFORM_SCHEDULE_REJECTED exits 68 (partial). See exit codes.
Transforms run in their own phase, one after another, after streams and the native DLO, DMO, mapping and relationship items, and before identity resolution, calculated insights, segments and graphs. The first transform that does not succeed stops the run.
A file of a system transform deployed to an org without it goes through Salesforce’s validation and create like any other file, and Salesforce refuses the hidden definition: a create sent directly answered 400 JSON_PARSER_ERROR and created nothing.
Update
CLI
Not supported. Salesforce CLI 2.151.7 resolves deploy through the same metadata registry, which has no DataTransform type, so it cannot send a transform.
Metadata API
Not tested. Not tested: readMetadata returns only the name of a transform, so there is no definition to update.
Connect API
Native API68 PUT of the complete transform; the schedule has its own PUT route.
Native API68 update
Replaces the whole transform with one PUT. Build the body from a fresh GET: keep the input keys, and leave out the output objects’ id, createdDate, lastModifiedDate and status, and the definition’s schedule.
sf api request rest '/services/data/v68.0/ssot/data-transforms/CustomerCopy' --target-org TARGET_ALIAS --method PUT --body '@transform-update.json' --include
Save transform-update.json: the create body with a new label and description, and the frequency kept:
{
"name": "CustomerCopy",
"label": "Customer Copy v2",
"description": "Copies customer rows nightly",
"type": "BATCH",
"dataSpaceName": "default",
"fullRunFrequency": "DAILY",
"definition": {
"type": "STL",
"version": "68.0",
"nodes": {
"LOAD0": {
"action": "load",
"parameters": { "dataset": { "name": "CustomerSource__dll", "type": "dataLakeObject" }, "fields": ["Id__c", "Name__c"] },
"sources": []
},
"OUT0": {
"action": "outputD360",
"parameters": {
"name": "CustomerCopy__dll",
"type": "dataLakeObject",
"writeMode": "OVERWRITE",
"fieldsMappings": [
{ "sourceField": "Id__c", "targetField": "Id__c" },
{ "sourceField": "Name__c", "targetField": "Name__c" }
]
},
"sources": ["LOAD0"]
}
}
}
}
The answer is HTTP 200 with PROCESSING; in a live test the transform read ACTIVE with the new values within a minute, and no run started.
- PUT replaces everything. A value the body leaves out is reset:
fullRunFrequencytoDAILY,writeModetoOVERWRITE. - No PATCH. The item route answers
405to PATCH; it allowsGET,PUT,DELETEandHEAD. - Schedule. A PUT keeps the schedule. A schedule inside the PUT body is checked but not applied. Change it with its own route; the body is not the shape the GET answers:
sf api request rest '/services/data/v68.0/ssot/data-transforms/CustomerCopy/schedule' --target-org TARGET_ALIAS --method PUT --body '{"frequency":"Daily","interval":1,"time":{"hour":3,"minute":15,"timeZone":"GMT"},"shouldForceSpecifiedMinutes":true}' --include
It answers 200, and a second PUT with other values changes the schedule. shouldForceSpecifiedMinutes is write-only: the GET never returns it. {"frequency":"None"} turns the schedule off. Daily needs an interval, Hourly takes daysOfWeek, and Weekly is refused. The GET’s own body is refused: nextScheduledDate, timezone and type are not input keys. DELETE on the schedule route answers 405.
- System transforms. Salesforce refuses every write to the system transform of a data graph: a PUT built from its read answers
400JSON_PARSER_ERROR(the typeSTL_HIDDENcannot be sent), and a schedule PUT answers403DATACLOUD_API_DISABLED_EXCEPTION(400INVALID_STATUSwhile the transform is inERROR).
sf-plugin-data
Updates a transform by name: the definition with one PUT, the schedule with its own PUT; Salesforce decides, also for system transforms.
Retrieve the transform, change the file and deploy it. One match by name updates that record, or reports unchanged when the file equals the transform as retrieve writes it:
sf data360 retrieve -m data-transform:CustomerCopy -o TARGET_ALIAS
sf data360 deploy -m data-transform:CustomerCopy --preview -o TARGET_ALIAS
sf data360 deploy -m data-transform:CustomerCopy -o TARGET_ALIAS
- Keep the file complete. An update replaces the whole transform: a value the file leaves out is reset by Salesforce, for example the full-run frequency to
DAILYand the write mode toOVERWRITE. A retrieved file holds every value. - Definition. A changed definition is sent with one PUT of the whole transform.
- Schedule.
schedulein the file is the schedule you want. Deploy compares it with the org’s schedule, reduced the same way as on retrieve. When it differs, deploy sends it with one schedule PUT and reads it back. After a definition PUT it first waits, up to 5 minutes, until the transform is no longerPROCESSING; when only the schedule changed, the schedule PUT is the only write. If the wait runs out or Salesforce refuses the schedule, the result readsTRANSFORM_SCHEDULE_NOT_SENTorTRANSFORM_SCHEDULE_REJECTED: the definition was updated, the schedule was not. To turn a schedule off, write"schedule": { "frequency": "None" }in the file; retrieve never writes it.shouldForceSpecifiedMinutesis write-only: the file may carry it and deploy sends it, but Salesforce never returns it, so it is not compared. A file withoutscheduleleaves the schedule as it is. Salesforce takesHourly(withdaysOfWeek),Daily(withinterval) andNone; it refusesWeekly. - Schedule in another org. A schedule copied to another org makes the transform run there. Preview and deploy report
TRANSFORM_SCHEDULE_CHANGEwhenever the schedule will be sent; removeschedulefrom the file to keep the target org’s schedule. - System and packaged transforms. They are sent like your own, and Salesforce decides. It refuses an update of a system transform with
400JSON_PARSER_ERRORand a schedule change with403DATACLOUD_API_DISABLED_EXCEPTION; the item then readsfailedwith mutationrejected, and nothing was written. Change a system transform through the data graph that made it. - Enum letter case. A value of
type,fullRunFrequency,categoryorwriteModethat differs from Salesforce’s stored spelling only in letter case (for exampleDailyforDAILY) counts as unchanged on deploy. The plugin sends the value as written; retrieve writes Salesforce’s spelling. The definition type is the exception: it must be spelledDCSQL, and Salesforce refusesDcSqlwithJSON_PARSER_ERROR. - Stored form. Salesforce stores a DCSQL definition without a version and with empty
macrosandsources. Retrieve after deploying a hand-written file to get the stored form; a file that differs only in that form is updated again on each deploy.
--changed-since <git-ref> selects only the transforms whose files changed.
Delete
CLI
Not supported. Salesforce CLI 2.151.7 resolves delete through the same metadata registry, which has no DataTransform type, so it cannot delete a transform.
Metadata API
Not tested. Not tested: no transform was deleted through the Metadata API.
Connect API
Native API68 DELETE by name, confirmed by a 404 read.
Native API68 delete
Deletes one transform by name, then reads it back:
sf api request rest '/services/data/v68.0/ssot/data-transforms/CustomerCopy' --target-org TARGET_ALIAS --method DELETE --include
sf api request rest '/services/data/v68.0/ssot/data-transforms/CustomerCopy' --target-org TARGET_ALIAS --method GET --include
The DELETE answers HTTP 204 with no body. In a live test the GET answered 404 ITEM_NOT_FOUND 10 seconds later, and the name was gone from the list.
The source and output DLOs stay, including an output Salesforce created for the transform; delete them separately. A DLO DELETE sent about a minute after the transform’s delete answered 204, but the DLO then read ERROR for about 19 minutes; a second DELETE removed it.
The 404 text says a transform in another data space is found as <prefix>_<name>. A transform created in a custom space is stored without a prefix and read by its plain name.
A data graph’s system transform cannot be deleted while its graph exists: the DELETE answers 403 DATACLOUD_API_DISABLED_EXCEPTION. Deleting the graph removes its transform within a minute.
sf-plugin-data
Deletes transforms by name and confirms absence; Salesforce decides, and refuses system transforms.
Deletes transforms by name. Preview first; the delete lists the transforms and asks before deleting (--no-prompt skips the question):
sf data360 delete -m data-transform:CustomerCopy --preview -o TARGET_ALIAS
sf data360 delete -m data-transform:CustomerCopy -o TARGET_ALIAS
- One delete can name several transforms, each deleted on its own. Each name is resolved to its record ID through the complete transform list, ignoring letter case: no match reports
unchanged, two or more matches are refused withTRANSFORM_TARGET_NOT_RESOLVED. - System transforms and transforms with a namespace are sent like your own, and Salesforce decides. It refuses the DELETE of a data graph’s system transform with
403DATACLOUD_API_DISABLED_EXCEPTION; the item then readsfailedwith mutationrejected. Delete the data graph instead, which removes its transform. - A transform whose status is still
PROCESSINGis refused withTRANSFORM_DELETE_PROCESSINGand nothing is sent;--previewreports the same. Other states are left to Salesforce. - The command sends one DELETE and never retries, then reads the transform list for up to 60 seconds until it no longer shows the transform. A delete whose absence cannot be confirmed ends nonzero as unconfirmed; do not replay it.
- DLOs, runs and data are not touched unless the same command selects them.
- After a confirmed delete the file
data360/dataTransforms/CustomerCopy.dataTransform.jsonin the current directory is removed.--keep-local-fileskeeps it.
Evidence: tested scope, versions and error codes
Standard CLI and Metadata API (CLI 2.151.7, API 68.0). sf org list metadata-types lists no transform type: MktDataTranObject is the data stream object, and OmniDataTransform belongs to OmniStudio. sf org list metadata --metadata-type DataTransform lists user-built STL transforms as <dataspace>.<name>; the hidden system transforms a data graph creates are not listed. readMetadata returns only fullName, and a Metadata retrieve of the listed members returns only package.xml. sf project retrieve start --metadata DataTransform:<name>, also from a manifest, stops with RegistryError “Missing metadata type definition in registry for id ‘DataTransform’”. Deploy and delete go through the same registry. No Metadata API write was sent.
Native API (API 68.0, default data space, 2026-11-18). Two new batch STL transforms on new DLOs: one in the API form with dataSpaceName, one in the UI form with definitions. Both POSTs answered 201 and read ACTIVE with no schedule. A PUT with a new label and description answered 200 PROCESSING and read ACTIVE with the new values; a PATCH answered 405 and changed nothing. Both DELETEs answered 204 and the transforms read 404 within 10 seconds. The DLOs needed a second DELETE.
Input shapes (API 68.0). Accepted: STL version 68.0 with several fields, writeMode APPEND, fullRunFrequency Weekly, a mapping on a non-key field, and DCSQL through definitions with a new output DLO. Refused by Salesforce with INVALID_INPUT: an output equal to the source DLO, an STL output DLO that does not exist, and a streaming transform with STL. A PUT that left out the frequency and write mode reset them to DAILY and OVERWRITE. A schedule PUT without interval was refused; with it, accepted. The schedule stayed through every transform PUT.
Schedule and system transforms (API 68.0, 2026-11-18). On a new custom transform, a Daily schedule PUT answered 200, a second PUT changed it, and {"frequency":"None"} turned it off; Weekly and the GET body were refused, and DELETE on the schedule route answered 405. Two new data graphs on a new custom DMO each created a system Dg_… transform. Both read only STL_HIDDEN and a weekly schedule. Every PUT built from the read answered 400, every schedule PUT 403 (400 while in ERROR), and every DELETE 403; the transform and graph stayed. A POST of the retrieved file after the graph was gone answered 400 and created nothing. Deleting each graph removed its transform.
Plugin (API 68). The public commands created a hand-written STL transform and a DCSQL transform with a new output DLO, retrieved both, updated one with its frequency and write mode kept, reported a repeat as unchanged, and deleted both, each deletion confirmed. Further runs covered two transforms in one deploy, --changed-since, and a changed output DLO, which Salesforce accepted. A transform in the UI form (no dataSpaceName, definitions) was retrieved, previewed as unchanged on deploy and previewed for delete. In a live test a new transform stayed PROCESSING for about 2.5 minutes after its create; once it was ACTIVE, the same delete went through.
UI. The New Data Transform wizard offers batch (visual editor) and streaming (SQL). A batch transform on Data Lake Objects applies across all data spaces and is saved without dataSpaceName; one on Data Model Objects is tied to one data space. The editor’s Upsert write mode is stored as MERGE.
Not verified: batch transforms on Data Model Objects, streaming transforms, runs, schedule changes and writes to system transforms through the plugin (covered by tests without an org; the API calls they send were tested live), transforms with a namespace, Metadata API writes, other data spaces and other orgs.