Skip to main content

Connect to Salesforce (Legacy UI)

Nexla's bi-directional connectors can both send data to and receive data from any data system. This means that once a user has created or gained access to a credential for any data system, building any data flow to ingest data from or send data to a location within that data system requires only a few simple steps.

1. Credentials

This section provides information about and step-by-step instructions for creating a new Salesforce credential in Nexla.

1.1 Add a New Salesforce Credential

  1. After selecting the data source/destination type, in the Authenticate.png screen, click AddANewCredential.png. This will open the Add New Credential window.

      AddNewCredential.png

  2. Enter a name for the credential in the Credential Name field.

      CredName.png

  3. Optional: Enter a description for the credential in the Credential Description field.

      CredDescription.png

1.2 Authorize Salesforce Access

  1. Choose the type of the Salesforce instance to which this credential should connect from the Salesforce Instance Type pulldown menu.

      Instance_Type.png

  2. Click Authorize.png, and log into the Salesforce account to which this credential should be connected in the pop-up window that appears.

      Login_Window.png

1.3 Save and Create the Salesforce Credential

  1. Once all of the relevant steps in the above sections have been completed, click Save.png at the bottom of the Add New Credential screen to save the credential and all entered information.

      Save2.png

  2. The newly added credential will now appear in a tile on the Authenticate.png screen and can be selected for use with a new data source or destination.

      CredentialsList.png

2. Add a Salesforce Data Source

  1. Log into Nexla with your provided credentials to view the Nexla Dashboard.

    If you need credentials, contact support@nexla.com.

  2. Select Sources.png from the menu on the left.

  3. Click Create_New_Source.png in the upper right corner to begin adding a new data source.

  4. Select Salesforce.png, and click Next.png in the upper right corner of the screen to begin adding the Salesforce data source.

  5. In Nexla, Salesforce data sources can be configured using pre-built templates or by manual configuration. The following subsections provide instructions specific to configuration using each of the templates available under the Template.png tab. For information about advanced manual source configuration, see Section 2.1.

2.1 Configure the Salesforce Data Source Using a Template

  1. First, select the Template.png tab, and then proceed to one of the following templates.

      Template_Tab.png

  • Template Execute SOQL Query

    This template allows the user to enter an SOQL query to fetch specified information about accounts associated with the Salesforce account entered in the previous steps.

    1. Select "Execute SOQL Query" from the Endpoint pulldown menu.

        Endpoint_SOQL.png

    2. Enter the fully formatted SOQL query statement in the SOQL Query to Be Executed text field, adhering to the Salesforce SOQL query syntax and convention.

      For more information about writing an SOQL query in Salesforce, see this Salesforce document.

      Additional information about object references and applicable object fields can be found in this Salesforce document.

        SOQL_Query.png

    3. Click Test1.png to test the endpoint, and an overview of the SOQL query result will be shown in the Endpoint Test Result pane to the right.

        Test4.png

    4. Proceed to Section 2.3.

  • Template Fetch All Accounts

    This template uses a pre-defined SOQL query to fetch basic information—including the name, ID, account number, annual revenue, and industry fields—about all accounts associated with the Salesforce account entered in the previous steps.

    1. Select "Fetch All Accounts" from the Endpoint pulldown menu.

        Fetch_All_Accounts.png

    2. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_All_Accounts3.png

    3. Proceed to Section 2.3.

  • Template Fetch All Contacts

    This template uses a pre-defined SOQL query to fetch information in the name and ID fields for all contacts associated with the Salesforce account entered in the previous steps.

    1. Select “Fetch All Contacts” from the Endpoint pulldown menu.

        Fetch_All_Contacts.png

    2. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_All_Contacts3.png

    3. Proceed to Section 2.3.

  • Template Fetch All Metadata for Object

    This template uses a pre-defined SOQL query to completely describe all individual pieces of metadata corresponding to the specified Salesforce object, such as fields, URLs, and child relationships.

    1. Select “Fetch All Metadata for Object” from the Endpoint pulldown menu.

        Fetch_All_Metadata.png

    2. In the Standard Object Name field, type the name of the Salesforce standard object for which metadata should be retrieved, or select the name from the pulldown menu.

        Standard_Object_Name.png

    3. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_Metadata3.png

    4. Proceed to Section 2.3.

  • Template Fetch All Opportunities

    This template uses a pre-defined SOQL query to fetch basic information—including the name, ID, type, amount, description, and probability fields—about all opportunities associated with the Salesforce account entered in the previous steps.

    1. Select “Fetch All Opportunities” from the Endpoint pulldown menu.

        Fetch_All_Opportunities.png

    2. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_Opportunities3.png

    3. Proceed to Section 2.3.

  • Template Fetch Object Records: All Fields

    This template requires a Nexla Data API Nexset, which is used to generate an SOQL query to retrieve all fields associated with all records in the specified Salesforce object.

    1. For this template, another Salesforce source that uses the “Get Fields of Object: API Proxy” template must first be created.

      The “Get Fields of Object: API Proxy” data source will retrieve all available fields for the specified object, which this template will then use to fetch information from all fields associated with the object records.

    2. Transform the Nexset detected from the source created in Step 1 using the public reusable record transform “Salesforce Query Generator: All Fields for Object”.

      The “Salesforce Query Generator: All Fields for Object” reusable record transform should be accessible to all users in the Nexset Designer. To learn how to apply this and other reusable record transforms, see Reusable Record Transforms.

        Record_Transform2.png

      1. Click Inspect.png on the transformed Nexset produced from Step 2 to open the Nexset overview, and click Show_Data_Feed_URL.png on the right side of the screen.

          Inspect2.png

      2. Click Copy.png to copy the data feed API URL, and paste this URL in a Notepad file or other easily accessible location.

          Copy_URL.png

    3. In the Configure screen for the new source to which the Fetch Object Records: All Fields template should be applied, select "Fetch Object Records: All Fields" from the Endpoint pulldown menu.

        All_Fields.png

    4. In the Object Name field, type the name of the Salesforce object for which all fields should be retrieved, or select it from the pulldown menu.

        Object_Name.png

    5. Paste the copied Nexla data feed API URL that generates SOQL query snippets containing Salesforce fields relevant to the selected object in the Nexla Data Feed URL: API Proxy field.

      Ensure that only the URL is pasted into the Nexla Data Feed URL: API Proxy field, omitting any preceding and/or subsequent characters.

      The Nexla data feed API URL generates SOQL query snippets containing Salesforce fields relevant to the selected object, which are used in this template to retrieve all fields associated with all records in the Salesforce object selected in Step 4.

        API_URL.png

    6. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_All_Fields3.png

    7. Proceed to Section 2.3.

  • Template Fetch Object Records: All Fields Incremental Load

    This template requires a Nexla Data API Nexset, which is used to generate an SOQL query to retrieve all fields associated with all records in the selected Salesforce object that have been modified since the preceding day.

    1. For this template, another Salesforce source that uses the “Get Fields of Object: API Proxy” template must first be created, as described below.

      The “Get Fields of Object: API Proxy” data source will retrieve all available fields for the specified object, which this template will then use to fetch information from all fields associated with the object records.

    2. Transform the Nexset detected from the source created in Step 1 using the public reusable record transform “Salesforce Query Generator: All Fields for Object”.

      The “Salesforce Query Generator: All Fields for Object” reusable record transform should be accessible to all users in the Nexset Designer. To learn how to apply this and other reusable record transforms, see Reusable Record Transforms.

        Record_Transform2.png

    3. Click Inspect.png on the transformed Nexset produced from Step 2 to open the Nexset overview, and click Show_Data_Feed_URL.png on the right side of the screen.

        Inspect2.png

    4. Click Copy.png to copy the data feed API URL, and paste this URL in a Notepad file or other easily accessible location.

        Copy_URL.png

    5. In the Configure screen for the new source to which the Fetch Object Records: All Fields - Incremental Load template should be applied, select "Fetch Object Records: All Fields - Incremental Load" from the Endpoint pulldown menu.

        Incremental_Load.png

    6. In the Object Name field, type the name of the Salesforce object for which all modified fields should be retrieved, or select it from the pulldown menu.

        Object_Name.png

    7. Paste the copied Nexla data feed API URL (Step 2b) that generates SOQL query snippets containing Salesforce fields relevant to the selected object in the Nexla Data Feed URL: API Proxy field.

      Ensure that only the URL is pasted into the Nexla Data Feed URL: API Proxy field, omitting any preceding and/or subsequent characters.

      The Nexla data feed API URL generates SOQL query snippets containing Salesforce fields relevant to the selected object, which are used in this template to retrieve all fields associated with all records in the Salesforce object selected in Step 4.

        API_URL.png

    8. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_Incremental_Load3.png

    9. Proceed to Section 2.3.

  • Template Fetch Opportunity by ID

    This template uses a pre-defined SOQL query to retrieve information in all fields associated with the specified Salesforce opportunity.

    1. Select “Fetch Opportunity by ID” from the Endpoint pulldown menu.

        Opportunity_by_ID.png

    2. Enter the ID of the Salesforce opportunity for which information should be retrieved in the Opportunity ID field.

        Opportunity_ID.png

    3. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_Opportunity_ID.png

    4. Proceed to Section 2.3.

  • Template Get All Objects

    This template uses a pre-defined SOQL query to retrieve all objects available to the user and organization corresponding to the credential created or selected above. The template also returns the organizational encoding and maximum batch size permitted in queries.

    1. Select “Get All Objects” from the Endpoint pulldown menu.

        Get_All_Objects.png

    2. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_All_Objects3.png

    3. Proceed to Section 2.3.

  • Template Get Fields of Object: API Proxy

    This template creates a Nexla API proxy data source that will fetch all fields associated with the specified custom or standard Salesforce object.

    1. Select “Get Fields of Object: API Proxy” from the Endpoint pulldown menu.

        API_Proxy.png

    2. Enter the version number of the Salesforce API proxy that should be generated for use with Nexla in the Salesforce API Version field.

        Salesforce_API_Version.png

    3. Click Test1.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

        Test_API3.png

    4. Proceed to Section 2.3.

2.2 Configure the Salesforce Data Source Using Advanced Settings

In Nexla, settings available under the Advanced.png tab allow users to configure the Salesforce data source to fetch data from any valid API endpoint. Optionally, multiple API endpoints can also be chained under this tab by adding and configuring multiple steps.

  1. Select the Advanced.png tab.

    Under the Advanced tab, one API source configuration step is automatically provided, but additional steps can also be configured, as shown in Step 9.

      Advanced_Tab.png

  2. Select the API method that should be used for this source from the Method pulldown menu.

    When configuring a Salesforce data source, GET is the method most commonly used.

      Method.png

  3. Enter the URL from which data should be fetched in the Set API URL field.

      Set_API_URL.png

  4. Optional: To customize and add Nexla macros to the API URL entered in Step 3, click URL_Macros.png to expand the URL Macros panel and access associated controls.

    Nexla automatically converts any added macros into values when it executes the associated API call.

      URL_Macros_Panel.png

    1. To add Nexla macros to the API URL, type { at the appropriate position in the Set API URL field, and a dropdown menu containing all available pre-built functions will appear.

        Add_Macro.png

      • To add a macro from the dropdown menu, click on the macro, and it will be added at the current position in the Set API URL field.

          Macro_Added3.png

      • To specify the date-time format to which Nexla should convert date-time macro values, select the desired format from the Date Format for Date/Time Macro pulldown menu.

          DateTime.png

      • To specify the date or time unit that Nexla should use to perform mathematical operations on date-time macro values, select the desired unit from the Time Unit for Operations pulldown menu.

          Time_Unit.png

    2. Column values in any Nexla static or dynamic data lookup can also be added as macros in the API call. To add one or more lookup column value macros, select the lookup that should be used to generate the API macros from the Add Lookups to Supported Macros pulldown menu.

        Add_Lookup.png

      • After selecting the lookup, when { is typed in the Set API URL field, the key columns will appear below the system macros in the dropdown menu and can be added to the API call by clicking on the desired key column(s).

          Lookup_Macro.png

  5. Optional: Specify which part of the received API response that Nexla should treat as relevant data by entering the path to the relevant data in the Set Path to Data in Response field.

    For JSON API responses, specify the JSON path that points to the relevant object/array in the response.

    For XML API responses, use XPATH to specify the path to the relevant data in the response.

      Path_to_Data.png

    • Nexla can autogenerate data suggested data paths to be used in this field. To view these suggestions, click Test.png to fetch a sample API response from the API URL entered in Step 3. The generated suggestions will be shown in the Suggestions box.

        Suggested_Paths2.png

    • Click on a suggested path to add it to the Set Path to Data in Response field.

        Suggested_Paths4.png

  6. Optional: To configure Nexla to include additional relevant metadata that falls outside of the path entered in Step 5, enter the path to the relevant metadata in the Path to Metadata in Response field.

    For JSON API responses, specify the JSON path that points to the relevant metadata in the response.

    For XML API responses, use XPATH to specify the path to the relevant metadata in the response.

      Path_to_Metadata.png

  7. Optional: Enter any request headers that Nexla should send as part of the API call as comma-separated values in the Request Headers field.

    Headers present in the credentials entered or selected above do not need to be repeated in this field.

      Request_Headers.png

  8. Optional: If the API source is paginated, check the box next to Paginated.png.

  9. Optional: To chain one or more additional API calls, click Add_Another_Step.png, and repeat Steps 2-8 in this section.

  10. Once configuration is complete, click Test.png to test the endpoint and produce an overview of the result in the Endpoint Test Result panel on the right.

      Test_Advanced3.png

2.3 Schedule Data Source Scanning

  1. In the Advanced Settings menu on the right, use the Fetch Data pulldown menu to specify how often Nexla should fetch data from the source.

    The default setting configures Nexla to fetch any new data from the source once every day.

      Scheduling.png

    • For options such as "Every N Hours" and "Every N Days", use the additional pulldown menu that appears when these options are selected to specify the value of N defining the fetching frequency.

        N_Hours.png

  2. Optional: To set a specific time at which Nexla should fetch any new data from the source, check the Set_Time.png box, and type or use the pulldown menus to enter the desired time.

      Specify_Time.png

2.4 Save and Create the Salesforce Data Source

  1. Once all of the above steps have been completed, click Create.png in the upper right corner of the screen to save and create the new Salesforce data source.

  2. The confirmation page indicates that the Salesforce data source has been successfully added.

      Success.png

  3. Optional: Edit the name of the newly added data source by clicking on the name field and entering the desired text.

      Edit_Name.png

  4. Optional: Add a description of the data source by clicking on the Description.png field below the data source name and entering the desired text.

      Edit_Description.png

    • To return to My Data Sources, click Done.png in the upper right corner.

    • To view the newly created data source, click View_Source.png.

    • To view Nexsets detected in the newly added source, click View_Detected_Nexsets.png.