Skip to main content

How to Set up Salesforce

Updated yesterday

Setup takes about 10–15 minutes.

Introduction

Connecting Salesforce to Foundational allows Foundational to determine lineage and downstream impact for Salesforce objects and reports.

To make the connection, you need to:

  • Assign Salesforce permissions to Foundational

  • Choose an authentication method using either a Salesforce user or an external Salesforce application

  • Connect to Foundational using your Salesforce URL and credentials


Prerequisites

Ensure you have:

  • Salesforce API enabled

  • A Salesforce user with Run Reports permission

  • Salesforce admin access if you plan to create an external Salesforce application

  • Added Foundational IP addresses to the allowlist, see the article Allowing IP access to Foundational.


Access permissions

The permissions you assign enable Foundational to:

  • Read Salesforce object metadata

  • Access report definitions

  • Extract lineage and relationships between Salesforce objects and reports


Salesforce authentication methods

Salesforce supports two authentication methods.

  1. Salesforce user credentials: Requires username, password, and security token.

  2. External Salesforce application (OAuth): Use this option if you use SSO or if your organization prefers to configure access using an external Salesforce app (and not by users).

Option 1: Authenticate with user credentials


Step 1: Create or use an existing user

  1. Create a new Salesforce user for Foundational or select an existing user.

  2. Ensure the user has:

    • Salesforce API access

    • Run Reports permission

    • Access to the objects and reports you want Foundational to ingest

  3. Locate the user’s Salesforce security token.
    You need the security token to set up the connection with Foundational. However, you cannot view a security token, so if you don’t have it, you need to reset it. Check out the Salesforce documentation Reset Your Security Token.

Step 2: Connect Foundational to Salesforce

  1. In Foundational, open the Connectors & Integrations page.

  2. In CRM & ERP, select the Salesforce card, and click Connect.​

  3. Click Add Account.

  4. The initial setup screen opens. Click Start Setup.

  5. The Set Up New Connection screen opens.


    Enter the details:

    • Salesforce URL: The URL of your Salesforce instance.

    • Authentication Method: User and password.

    • User Name: The username that you want Foundational to use to access Salesforce. This user must have API access enabled.

    • Password: The user’s password.

    • User Token: The value you saved earlier.

  6. Click Next.

  7. The final setup screen opens. Click Save to complete the connection.

Option 2: Authenticate with an external app (OAuth)


​Step 1: Create and configure the OAuth app

  1. In Salesforce, click the Gear icon and select Setup.

  2. Open External Client App Manager.

    Enter these details:

    • External Client App Name: Foundational

    • API Name: Foundational

    • Contact Email: Your email or the app owner’s email

  3. Under API (Enable OAuth Settings), enable the Enable OAuth checkbox.

  4. In App Settings, set Callback URL to: https://app.foundational.io.

  5. Select these OAuth scopes:


    Add to the right pane:

    • Manage user data via APIs (api)

    • Access identity URL service (id, profile, email)

    • Perform requests at any time (refresh_token)

    • Access Lightning applications (lightning).

  6. In Flow Enablement, enable the Client Credentials Flow checkbox.

  7. Click Create.

Step 2: Configure policies and credentials

  1. Still in Salesforce, go to External Client App Manager and select the app you just created.

  2. In Policies, select Edit.

  3. The OAuth Policies screen opens.

    • Enable Client Credentials Flow: Enable the checkbox.

    • Run As (Username): Enter the username that the Foundational app will run as. The user must have Salesforce API access and Run Reports permission.

  4. In App Authorization, set the refresh token validity to 720 days.

  5. Save the changes.

  6. In the app, select the Settings tab.

  7. In OAuth Settings, click Consumer Key and Secret. Copy the Consumer Key and the Consumer Secret and store them safely. You’ll need them to set up the connection.

Step 3: Connect Foundational to Salesforce

  1. In Foundational, open the Connectors & Integrations page.

  2. In CRM & ERP, select the Salesforce card, and click Connect.

  3. Click Add Account.

  4. The initial setup screen opens. Click Start Setup.

  5. The Set Up New Connection screen opens.​

    Enter the details:

    • Salesforce URL: The URL of your Salesforce instance.

    • Authentication Method: External App Authentication.

    • Consumer Key: The consumer key from your Salesforce connected app.

    • Consumer Secret: The consumer secret from your Salesforce connected app.

  6. Click Next.

  7. The final setup screen opens. Click Save to complete the connection.

Whichever method you used, Foundational is now connected to Salesforce.

Did this answer your question?