Set up the Salesforce Data Cloud Zero-Copy connector¶
This topic describes how to create the Zero-Copy connector for Salesforce Data Cloud on the Snowflake side and retrieve the Enrollment ID needed to authorize the connection.
Complete these steps first. Once you have the Enrollment ID, provide it to your Salesforce administrator to complete the Salesforce-side setup. See Set up Salesforce Data Cloud for Zero-Copy.
For the privileges required for each operation, see Security and privileges.
Prerequisites¶
The role used to create the connector must have CREATE ZEROCOPY CONNECTOR on the target schema. By default, the owner role of a schema has this privilege.
Create a database and schema¶
A Zero-Copy connector is a schema-level object. Before creating one, ensure you have a target database and schema, or create new ones. For reference, see CREATE DATABASE and CREATE SCHEMA.
Create a Zero-Copy connector¶
You can create the connector using the Snowsight UI or SQL.
Using Snowsight¶
- In Snowsight, navigate to Ingestion » Zero-Copy.
- Select the Overview tab.
- On the Salesforce Data 360 Connect for Snowflake card, click Connect.
- In the Connection details panel:
- Connector name: Enter a name, or use the auto-generated name (for example,
SALESFORCE_CONNECT_1785545041895). - Connector location: Select the schema where the connector will be installed.
- Connector name: Enter a name, or use the auto-generated name (for example,
- Click Create connector.
After creation, Snowsight displays an Enrollment ID in the Establish connection to Salesforce panel. Copy this value — you will provide it to your Salesforce administrator in the next step.
Using SQL¶
Create the connector with CREATE ZEROCOPY CONNECTOR:
After creation, the connector is in the NEW state. Retrieve the Enrollment ID with
SYSTEM$GET_ZEROCOPY_CONNECTOR_CONFIG. The role that calls it needs the
OPERATE privilege on the connector.
The output includes an enrollment_code value. Copy it and provide it to your Salesforce
administrator. Treat the Enrollment ID like a credential: anyone who has it can connect a Salesforce
Data Cloud org to the connector while the connector is waiting for a connection.
Provide the Enrollment ID to Salesforce¶
Share the Enrollment ID with your Salesforce administrator. They use it to create a Data Share Target in Salesforce Data Cloud, which establishes the authorized connection back to your Snowflake account. See Set up Salesforce Data Cloud for Zero-Copy for the Salesforce-side steps.
After the Salesforce administrator creates the Data Share Target using the Enrollment ID, Salesforce
starts the connection, and the connector moves from NEW to CONNECTING. You don’t run any
statement in Snowflake to connect.
Use DESCRIBE ZEROCOPY CONNECTOR to monitor progress while waiting:
The connector is ready when status shows CONNECTED.
If Salesforce Data Cloud isn’t ready to accept the connection yet, Snowflake retries for a while, and
you don’t need to do anything. Salesforce can show the Data Share Target as connected even when the
connection failed in Snowflake, so always check the status in Snowflake. If the connector still
doesn’t reach CONNECTED, see
Troubleshoot the Salesforce Data Cloud Zero-Copy connector.
Verify connector state¶
To check the full details of a connector, use DESCRIBE ZEROCOPY CONNECTOR. After the connector
connects, the config column shows the Salesforce Data Cloud tenant (salesforce_tenant_endpoint and
salesforce_tenant_id). For a description of all output columns, see DESCRIBE ZEROCOPY CONNECTOR.
To list the connectors that the current role can see, use SHOW ZEROCOPY CONNECTORS:
Set properties¶
To set a comment on a connector, use ALTER ZEROCOPY CONNECTOR … SET:
To remove the comment:
Disconnect the connector¶
Note
All catalog-linked databases created from the connector must be
dropped before disconnecting. The connector must be in the CONNECTED or
DISCONNECT_ERROR state.
The connector immediately enters DISCONNECTING state while the connection
is dropped asynchronously. When successful, it transitions to DISCONNECTED.
The Enrollment ID doesn’t change. To connect the connector again, your Salesforce administrator
starts the connection from Salesforce Data Cloud again with the same Enrollment ID.
Drop the connector¶
To drop a connector, use DROP ZEROCOPY CONNECTOR. You can only drop a connector that is in the
NEW, CONNECT_ERROR, DISCONNECT_ERROR, or DISCONNECTED state. To
drop a CONNECTED connector, drop its catalog-linked databases and disconnect it first. Zero-Copy
connectors do not support UNDROP.
Next steps¶
Once the connector is in the CONNECTED state, your Salesforce administrator can share data products. See Set up Salesforce Data Cloud for Zero-Copy to complete the Salesforce-side setup, then Explore data products from Salesforce Data Cloud to list and query the shared data.