Skip to content

Salesforce

To integrate Salesforce into Mindflow, you will need to create and configure an External App within Salesforce, then create and configure a Credential in Mindflow.

This guide will walk you through the different steps to create and set up an External App in Salesforce and the configuration of the related credential in Mindflow.

  1. A service account dedicated to automation, for traceability and auditability purposes.
  2. Admin rights to create External Client Apps.
  3. Logged in your Mindflow platform.
  1. Log in to your Salesforce environment.

  2. Click the gear icon on the top right of your screen.

  3. Click Setup.

    Click setup

  4. On the left navigation bar, open Apps then click on External Client Apps.

    Left navigation bar open apps then

  5. Then, on the right of the window, click New External Client App.

    Then right window click new external

  6. In Basic Information, give a name to the External App, a contact email, and Distribution State.

    Basic information give name external app

  7. Open API (Enable OAuth Settings), click Enable OAuth.

  8. Populate the callback URL with https://login.salesforce.com/services/oauth2/callback.

  9. As OAuth Scopes, only select Manager user data via APIs (api) and Perform requests at any time (refresh_token, offline_access). Find a list of all available scopes within the Scopes section of this document.

    Oauth scopes only select manager user

  10. Within Flow Enablement, only enable Enable Client Credentials Flow.

  11. Within Security, start by enabling Require secret for Web Server Flow and Require secret for Refresh Token Flow. You will be able to add more settings later on.

Within security start enabling require secret

  1. You’re set, click Create.

    Youre set click create

  2. Now, within the App panel and the Policies blade, select OAuth within Start page dropdown.

  3. As the OAuth Start URL, fill in your environment URL up until …force.com.

    Oauth start url fill your environment

  4. Within OAuth Flows and External Client App Enhancements, enable Enable Client Credentials Flow and, set, as Run as, a service account email address.

    Within oauth flows external client app

  5. Note that you are able, in App Authorization, to enforce some limitations, such as Refresh token validity period, IP whitelisting, etc. Depending on your subscription plan, you may benefit from IP whitelisting. Reach your Customer Success to know more about that.

  6. Click Save.

  7. Now, on to the last part. Open the Settings blade of the app you created. Open OAuth Settings and click on Consumer Key and Secret.

    Now last part

  8. This will open a new window requesting to approve the access through a temporary code sent to your email address.

    Will open new window requesting approve

  9. Once done, you will be able to see yout Consumer Key and your Consumer Secret. Store them in a secure manner. You will need them to configure the credential in Mindflow.

    Once done you will able see

  10. Now, login to Mindflow. Open the Environments tab and, within the target environment, click Create a credential (if credentials already exist in the target environment, click the + icon on the right, right next to the Environment’s members icons.

    Now login mindflow

  11. Then, within Service, look for Lightning Platform API (mind the different versions, choose v65.0).

    Then within service look lightning platform

  12. Once select, the form will update with new fields. Start by setting the Credential type to OAuth 2.0 Client Credentials.

    Once select form will update new

  13. Then:

    1. update the Instance field with your Salesforce environment name.
    2. Within Client Id, copy and paste your Consumer Key.
    3. Within Client Secret, copy and paste your Consumer Secret.
    4. Within Access Token URL, replace {instance} with your environment name up until …salesforce.com.

    Within access token url replace instance

  14. Click Save. Your integration to Saleforce is configured!

  • id, profile, email, address, phone: Allows the app to access the Identity URL service to retrieve specific user profile details.
  • openid: Grants access to the current user’s unique identifier via the OpenID Connect protocol.
  • web: Allows the app to use the logged-in user’s session to manage data via a web browser.
  • api: Grants access to all Salesforce REST, SOAP, and Bulk API resources for data management.
  • full: Provides access to all data and services accessible by the user, including all other specific scopes.
  • chatter_api: Grants access to Chatter REST API resources, including feeds, groups, and users.
  • visualforce: Allows the application to access and render custom Visualforce pages.
  • lightning: Grants access to Lightning Experience features and custom Lightning components.
  • content: Allows the app to manage Salesforce Content resources like Libraries, Files, and Documents.
  • wave_api: Provides access to the Analytics (CRM Analytics) REST API resources and datasets.
  • eclair_api: Specifically grants access to the geo-spatial chart data used within Analytics.
  • pardot_api: Allows the app to manage Pardot marketing automation services and data.
  • sfap_api: Grants access to the underlying Salesforce API Platform services.
  • chatbot_api: Provides the permissions necessary to interact with Salesforce Einstein Chatbot services.
  • interaction_api: Grants access to the Interaction Service API for real-time event processing.
  • einstein_gpt_api: Allows the application to interact with generative AI and Einstein GPT services.
  • cdp_api: A “master scope” that grants access to all Data Cloud API resources.
  • cdp_ingest_api: Allows the application to push or stream data into Data Cloud via the Ingestion API.
  • cdp_profile_api: Grants access to Unified Profile data and calculated attributes within Data Cloud.
  • cdp_query_api: Allows the app to execute ANSI SQL queries against Data Cloud data lakes.
  • cdp_segment_api: Grants permission to manage and retrieve Data Cloud segments for marketing.
  • cdp_identityresolution_api: Allows management of the rules that link various data points to a single person.
  • cdp_calculated_insight_api: Grants access to predefined multidimensional metrics known as Calculated Insights.
  • refresh_token, offline_access: Allows the app to request a new access token without the user re-logging in (maintains long-term access).
  • pwdless_login_api: Grants access to the Headless Passwordless Login API for custom authentication flows.
  • forgot_password: Allows the app to trigger and manage the Headless Forgot Password process.
  • user_registration_api: Grants access to the Headless Registration API to sign up new users.
  • custom_permissions: Allows the app to check for specific custom permissions assigned to the user.