Configuring Salesforce workspace data connections

During workspace creation, under Connection Type, click Salesforce.

Connecting to the source data

Before you can configure the source connection, you must create the connection in Salesforce. The source connection can be either a production org, a sandbox org, or a scratch org.

Providing the connected application keys

To connect to the Salesforce application, Structural requires a consumer key and a consumer secret.

You can configure these as the values of the environment settings TONIC_SALESFORCE_CONSUMER_KEY and TONIC_SALESFORCE_CONSUMER_SECRET.

If these environment settings are not configured, for example in Structural Cloud, then under Source Settings, the Connected App Credentials panel is displayed.

  1. In the Consumer Key field, provide the consumer key value.

  2. In the Consumer Secret field, provide the consumer secret value.

Providing and testing the server path

Under Source Settings, to connect to the source connection:

  1. In the Server field, type the path to the source connection server.

  2. Click Authenticate with Salesforce. Structural sends you to Salesforce to authenticate to the source connection.

  3. After you authenticate, to test the connection, click Test Source Connection.

Blocking data generation on all schema changes

By default, data generations are not blocked when schema changes do not conflict with your workspace configuration.

To block data generation when there are any schema changes, regardless of whether they conflict with your workspace configuration, toggle Block data generation on schema changes to the on position.

Connecting to the destination data

Before you can configure the destination connection, you must create the connection in Salesforce.

The destination connection must be either a sandbox org or a scratch org. However, the destination connection can only be a scratch org if the source connection is also a scratch org.

The destination connection must be a separate org from the source connection.

Providing the connected application keys

To connect to the Salesforce application, Structural requires a consumer key and a consumer secret.

If the TONIC_SALESFORCE_CONSUMER_KEY and TONIC_SALESFORCE_CONSUMER_SECRET environment settings are not configured, for example in Structural Cloud, then under Destination Settings, the Connected App Credentials panel is displayed.

To use the same key and secret that you provided under Source Settings, click Copy Settings from Source.

Otherwise:

  1. In the Consumer Key field, provide the consumer key value.

  2. In the Consumer Secret field, provide the consumer secret value.

Providing and testing the server path

Under Destination Settings, to connect to the destination connection:

  1. In the Server field, type the path to the destination connection server.

  2. Click Authenticate with Salesforce. Structural sends you to Salesforce to authenticate to the destination connection.

  3. After you authenticate, to test the connection, click Test Destination Connection.

Last updated