Data Kit template
Salesforce CLI workflows and verified operation limits for Kit template: DataKitObjectTemplate.
Last updated: .
A data kit groups configuration so it can be reused. A data kit template (DataKitObjectTemplate) stores the settings of one component in that kit. The template is a saved copy, not the live component.
Example used in every chapter: CustomerGraph, a Data Graph template.
| Read | Create | Update | Delete |
|---|---|---|---|
Yes
|
Partial
|
Partial
|
Yes
|
| Method | Read | Create | Update | Delete |
|---|---|---|---|---|
| CLI | Yes
|
Partial
|
Partial
|
Yes
|
| API | Yes
|
Partial
|
Partial
|
Yes
|
| sf-plugin-data | Not supported | Not supported | Not supported | Not supported |
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: No sf-plugin-data workflow is tested for this template. Only the Salesforce CLI and Metadata API workflows below apply.
Read
CLI
Retrieves one stored template, or all of them without naming each. It does not retrieve the live component.
Downloads the stored template into your project folder.
sf project retrieve start --metadata DataKitObjectTemplate:CustomerGraph --target-org SOURCE_ALIAS --api-version 68.0 --wait 10
The file is written to force-app/main/default/dataKitObjectTemplates/CustomerGraph.dataKitObjectTemplate-meta.xml. Its entityPayload element holds the template content as escaped JSON:
<DataKitObjectTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<entityPayload><!-- XML-escaped JSON payload omitted. --></entityPayload>
<sourceObjectType>DataGraph</sourceObjectType>
<templateVersion>1</templateVersion>
<!-- Other retrieved template attributes omitted. -->
</DataKitObjectTemplate>
To download every template without naming each one, leave out the name: --metadata DataKitObjectTemplate.
A Data Graph template can hold projected fields, joins and refresh settings. An Identity Resolution template can hold matching and reconciliation rules. Segment templates omit the live publish schedule and status.
Keep the full payload and every reference. Source IDs and external data lake object references can stop the template from working in another org. The saved template does not update when the live component changes.
Metadata API
Lists every template and reads its full payload.
listMetadata with type DataKitObjectTemplate returns every template name. readMetadata with those names returns entityPayload (the JSON as a string), masterLabel, sourceObject, sourceObjectType and templateVersion.
Connect API
Not supported. The Connect kit manifest lists template names and IDs only. No Connect resource returns a template payload.
sf-plugin-data
Not supported. The sf data360 commands have no data kit family.
Create
CLI
Stores a copy of a complete existing Data Graph template. No live graph is created and no kit is installed.
Stores the existing template file in the org.
sf project deploy start --metadata DataKitObjectTemplate:CustomerGraph --target-org TARGET_ALIAS --api-version 68.0 --wait 10
The command reads force-app/main/default/dataKitObjectTemplates/CustomerGraph.dataKitObjectTemplate-meta.xml and reports the component as Created. The template is stored only. No live graph is created and no kit is installed.
The XML excerpt under Read is not a complete creation file. Start from a complete retrieved template, then retrieve it again to compare its decoded payload.
Metadata API
createMetadata stores a copy of a complete Data Graph template on its own.
createMetadata with type DataKitObjectTemplate and a complete record (fullName, masterLabel, entityPayload, sourceObject, sourceObjectType, templateVersion) stores the template on its own, without a kit definition or membership. readMetadata returns the same decoded payload.
Connect API
Not supported. The Connect kit resource deploys or undeploys runtime components; it does not store a template.
sf-plugin-data
Not supported. The sf data360 commands have no data kit family.
Update
CLI
Changes the label and the payload description of a Data Graph template. It does not change a live graph.
Changes the description inside the entityPayload of a Data Graph template, then deploys it.
Decode the JSON, change only the description, then encode it as XML text again. Leave the root, fields, keys, types and other settings as they are. The masterLabel can change in the same deploy.
sf project deploy start --metadata DataKitObjectTemplate:CustomerGraph --target-org TARGET_ALIAS --api-version 68.0 --wait 10
The deploy reports the component as Changed. The update changes the stored template only. It does not change a live graph. Retrieve the template and compare the decoded payload to confirm the change.
Metadata API
updateMetadata changes the label and the payload description.
updateMetadata with type DataKitObjectTemplate and the complete record, with a changed masterLabel and a changed description inside entityPayload, returns success: true. readMetadata returns both new values.
Connect API
Not supported. The Connect kit resource deploys or undeploys runtime components; it does not change a template.
sf-plugin-data
Not supported. The sf data360 commands have no data kit family.
Delete
CLI
Deletes one stored template after its membership links are gone. The live component is not touched.
Deletes one stored template. Delete its membership links first (see the membership page).
Save this as manifest/empty.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<version>68.0</version>
</Package>
Save this as manifest/destructiveChangesPost.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>CustomerGraph</members>
<name>DataKitObjectTemplate</name>
</types>
<version>68.0</version>
</Package>
sf project deploy start --manifest manifest/empty.xml --post-destructive-changes manifest/destructiveChangesPost.xml --target-org TARGET_ALIAS --api-version 68.0 --wait 10
The deploy reports the component as Deleted. The live graph is not touched.
Metadata API
deleteMetadata removes one stored template.
deleteMetadata with type DataKitObjectTemplate and the name returns success: true. A later readMetadata returns an empty record.
Connect API
Not supported. DELETE on the Connect kit resource undeploys runtime components; it does not delete a template.
sf-plugin-data
Not supported. The sf data360 commands have no data kit family.
For how moving a kit differs from installing it, see Moving a kit is not installing it.
Evidence: tested scope, versions and error codes
Verification scope: Every operation was run live on API 68.0 on new Cli… templates copied from an existing Data Graph template, and all of them were deleted afterwards. The verification database records it as data360:b1.datakit-pages.sweep-api68. No sf-plugin-data command (--preview, --dataspace, --async, --wait, --keep-local-files) applies to templates. This badge does not verify untested writes or general CRUD support.
Versions and aliases: The sf project commands on this page pass --api-version 68.0. SOURCE_ALIAS and TARGET_ALIAS are placeholders for your own org aliases.
Read: A retrieve without a name downloaded every template in the org. listMetadata and readMetadata returned the same templates with their full payload. The Connect kit manifest (GET ssot/datakit/{kit}/manifest) lists only template names and IDs.
Create: A CLI deploy (together with a kit definition and membership) and a createMetadata call on its own each stored a copy of a Data Graph template. The decoded payload read back unchanged. Only Data Graph templates were tested. No live graph was created.
Update: A CLI deploy and updateMetadata each changed the masterLabel and the description inside the payload; both read back. Other payload changes were not tested.
Delete: After its membership link was deleted, a destructive CLI deploy and deleteMetadata each removed one template on its own. The live graph that the template was copied from was still readable afterwards.
Connect API: The Connect kit resource ssot/data-kits/{kit} accepts GET, POST, PATCH and DELETE (a PUT returns METHOD_NOT_ALLOWED). POST and PATCH deploy runtime components and DELETE undeploys them. None of them stores, changes or removes the template record. They were not run against a real kit, because that would create or remove live components.
Not verified: Templates of other kinds (Identity Resolution, segment) created or changed through the API. Runtime creation and kit installation. Full graph updates through templates.