Runtime verified

Source object configuration (DataSourceObject) describes one source record that feeds Data Cloud, such as a Salesforce Contact.

Example: CustomerSource, a configuration for the Contact record from SalesforceSource.

Supplied workflows for Source object configuration
ReadCreateUpdateDelete
Yes
CLI API
Yes
CLI API
Yes
CLI API
Yes
CLI API
Coverage by method for Source object configuration
MethodReadCreateUpdateDelete
CLI
Yes
Yes
Yes
Yes
API
Yes
Yes
Yes
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. CLI means dedicated CLI commands; API means API-led requests or facades, even when invoked through the CLI. sf-plugin-data 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 sf data360 commands have no source-object family, so this page lists no plugin workflow.

Records only: Creating, changing or deleting a source object changes only this metadata record. Salesforce does not check that the named source record exists, and no data stream or data lake object is created or removed. A data stream creates its own source object; change that one only through its data stream.

Read

CLI

Downloads one source object, or all of them without naming each, as XML.

Downloads the source object definition as XML into your project folder.

sf project retrieve start --metadata DataSourceObject:CustomerSource --target-org SOURCE_ALIAS --api-version 68.0 --wait 10

The command writes this file, force-app/main/default/dataSourceObjects/CustomerSource.dataSourceObject-meta.xml:

<DataSourceObject xmlns="http://soap.sforce.com/2006/04/metadata">
  <dataSource>SalesforceSource</dataSource>
  <externalRecordIdentifier>Contact</externalRecordIdentifier>
  <masterLabel>Customer Source</masterLabel>
  <storageType>LOCAL</storageType>
  <templateVersion>1</templateVersion>
</DataSourceObject>

The file names the source record that the configuration refers to. To download every source object without naming each one, leave out the name: --metadata DataSourceObject.

Metadata API

Lists every source object and reads each one's fields.

listMetadata with type DataSourceObject returns every name. readMetadata with type DataSourceObject and those names returns the same fields as the XML file under CLI.

Connect API

Not supported. No Connect resource returns the source object record. A data stream read shows only the connector name and the source record name.

sf-plugin-data

Not supported. The sf data360 commands have no source-object family.

Create

CLI

Deploys a new source object record. No data stream is created.

Creates a source object from a file in your project folder.

Save this as force-app/main/default/dataSourceObjects/CustomerSource.dataSourceObject-meta.xml:

<?xml version="1.0" encoding="UTF-8"?>
<DataSourceObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <dataSource>SalesforceSource</dataSource>
    <externalRecordIdentifier>Contact</externalRecordIdentifier>
    <masterLabel>Customer Source</masterLabel>
    <storageType>LOCAL</storageType>
    <templateVersion>1</templateVersion>
</DataSourceObject>
sf project deploy start --metadata DataSourceObject:CustomerSource --target-org SOURCE_ALIAS --api-version 68.0 --wait 10

The deploy reports the component as Created. Only the record is stored; see Records only above.

Metadata API

createMetadata stores a new source object record.

createMetadata with type DataSourceObject and the same fields as the XML file under CLI (fullName, dataSource, externalRecordIdentifier, masterLabel, storageType, templateVersion) returns success: true. readMetadata then returns the stored fields.

Connect API

Not supported. No Connect resource creates a source object on its own. Creating a data stream creates one as a side effect.

sf-plugin-data

Not supported. The sf data360 commands have no source-object family.

Update

CLI

Changes the label and the source record name of an existing record.

Change the label or the source record name in the file from Create, then deploy it again:

sf project deploy start --metadata DataSourceObject:CustomerSource --target-org SOURCE_ALIAS --api-version 68.0 --wait 10

The deploy reports the component as Changed. Retrieve the file again to confirm the new values.

Metadata API

updateMetadata changes the label and the source record name.

updateMetadata with type DataSourceObject and the complete record (all fields from Create, with the changed masterLabel or externalRecordIdentifier) returns success: true. readMetadata returns the new values.

Connect API

Not supported. No Connect resource changes a source object record.

sf-plugin-data

Not supported. The sf data360 commands have no source-object family.

Delete

CLI

Deletes a source object record that no data stream uses.

Deletes a source object you created on its own. Do not delete one that a data stream uses.

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>CustomerSource</members>
        <name>DataSourceObject</name>
    </types>
    <version>68.0</version>
</Package>
sf project deploy start --manifest manifest/empty.xml --post-destructive-changes manifest/destructiveChangesPost.xml --target-org SOURCE_ALIAS --api-version 68.0 --wait 10

The deploy reports the component as Deleted.

Metadata API

deleteMetadata removes a source object record.

deleteMetadata with type DataSourceObject and the name returns success: true. A later readMetadata returns an empty record.

Connect API

Not supported. No Connect resource deletes a source object on its own.

sf-plugin-data

Not supported. The sf data360 commands have no source-object family.

Evidence: tested scope, versions and error codes

Tested scope: Every operation was run live on API 68.0 on new Cli… source objects, which were deleted afterwards. The verification database records it as data360:b1.datakit-pages.sweep-api68. This badge does not verify untested writes or general CRUD support.

Read: A retrieve without a name (--metadata DataSourceObject) downloaded all 39 source objects. listMetadata listed them, and readMetadata returned the same fields. The files do not include field definitions or a connector or credential export. The Metadata API reference names the folder mktDataSourceObjects; the CLI writes dataSourceObjects.

Create, update and delete: The CLI deploy reported Created, Changed and Deleted; createMetadata, updateMetadata and deleteMetadata returned success: true. A source record name that does not exist in the org was accepted, so Salesforce does not validate it. After each delete, readMetadata returned an empty record and listMetadata no longer listed the name.

Connect API: The Data 360 Connect resource catalog has no source-object family; it has data stream, connection, data lake object and data model object families. The data stream list (GET ssot/data-streams) shows only connectorInfo.connectorDetails with the connector name and source record name, not the source object record. Source objects created by data streams appear in the Metadata API list.

Not verified: Deleting a source object that a data stream uses. Field definitions (dataSourceFields). Connector or credential export.