Salesforce
Overview of the Salesforce integration.
The following documentation is for Salesforce v2.0.3.
Overview
Salesforce is the world's leading customer relationship management (CRM) platform for sales and marketing automation. This integration enables automated lead management, opportunity tracking, customer communication, and sales pipeline optimization. Enhance sales productivity and customer relationship management.
Setup
The following integrations need to be connected to your Kognitos workspace:
Salesforce
Steps
Follow these steps to connect the integration in Kognitos:
Configure
Add a name for the connection. You'll be prompted for authentication details if needed. Then, click on Connect.
Credentials
This section explains how to obtain the credentials needed to connect the Kognitos Integration to your Salesforce account. You can choose from different authentication methods, each requiring different credentials.
1. Client Credentials
This connection method uses OAuth authentication through a Connected App. These steps will walk you through obtaining a consumer key and secret.
This authentication method is the most secure and recommended approach.
Create a Connected App
Log in to Salesforce
Click the Setup icon (gear icon in the top right)
In the Quick Find box, search for "App Manager"
Click New Connected App
Configure the Connected App
Basic Information:
Connected App Name: Enter a name (e.g., "Kognitos Integration")
API Name: Will auto-populate
Contact Email: Enter your email address
API (Enable OAuth Settings):
Check Enable OAuth Settings
Callback URL: Enter
https://login.salesforce.com/services/oauth2/callback(or your specific callback URL)Selected OAuth Scopes: Add the required scopes:
Access and manage your data (api)
Perform requests on your behalf at any time (refresh_token, offline_access)
Full access (full) - if needed
Click Save
Get Consumer Key and Consumer Secret
After saving, navigate back to Setup → App Manager
Find your Connected App and click View
In the API (Enable OAuth Settings) section:
Copy the Consumer Key (also called Client ID)
Click "Click to reveal" next to Consumer Secret
Salesforce will ask you to verify your identity (via email or MFA)
Copy the Consumer Secret (also called Client Secret)
Get Your Domain
Your Salesforce domain is found in your Salesforce URL:
With My Domain:
https://yourcompany.my.salesforce.comWithout My Domain:
https://na30.salesforce.com(where "na30" is your instance)
To find it, simply log into Salesforce and look at your browser's address bar.
For more information, check out the Salesforce documentation: Create a Connected App.
2. Username, Password, Security Token, and Domain
This method uses username-password authentication with an API security token.
Get Your Username
Your username is the email address you use to log into Salesforce (e.g., [email protected])
Get Your Password
This is your standard Salesforce account password.
Get Your Security Token
Log in to Salesforce
Click your profile icon (top right)
Select Settings
In the Quick Find box, type "Reset"
Click Reset My Security Token
Click the Reset Security Token button
Check your email for the new security token
Copy the token from the email
Note: If you don't see the "Reset My Security Token" option, your organization may have IP restrictions enabled. Try this direct URL:
Get Your Domain
Your Salesforce domain is found in your Salesforce URL:
With My Domain:
https://yourcompany.my.salesforce.comWithout My Domain:
https://na30.salesforce.com(where "na30" is your instance)
To find it, simply log into Salesforce and look at your browser's address bar.
Authentication
Use one of the following authentication methods to connect this integration in Kognitos. Each method has its own configuration requirements.
Connect using Consumer Key, Consumer Secret and Domain
Connect to Salesforce using client credentials OAuth flow.
Consumer Key
The consumer key for authentication.
sensitive
Consumer Secret
The consumer secret for authentication.
sensitive
Domain
The domain of the Salesforce instance.
text
Connect using Username, Password, Security Token and Domain
Connects to a Salesforce instance using username, password, security token and domain.
Username
The username for authentication.
text
Password
The password for authentication.
sensitive
Security Token
The security token for authentication.
sensitive
Domain
The domain of the Salesforce instance.
text
Connect using Username, Password and Security Token
Connects to a Salesforce instance using username, password and security token.
Username
The username for authentication.
text
Password
The password for authentication.
sensitive
Security Token
The security token for authentication.
sensitive
Actions
The following actions are available in the Salesforce integration:
1. Create a report in salesforce
Creates a report in Salesforce.
2. Export a report as a excel
Exports a report as an Excel file.
3. Export a report as a table
Exports a report as a Pyarrow Table.
4. Retrieve some reports from salesforce
Retrieves reports from Salesforce.
5. Send an email in salesforce
Sends an email in Salesforce.
Concepts
Salesforce create report body
Information sent to Salesforce to create a report.
report_metadata
The metadata of the report.
json
Salesforce report
A Salesforce report, modeled as the Salesforce Object (SObject)and defined as a set of data that meets certain criteria, displayed in an organized way. Specified here: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_report.htm
id
The ID of the report.
text
owner_id
The ID of the owner of the report.
text
name
The name of the report.
text
developer_name
The unique name of the object in the API.
text
description
The description of the report. Limit: 255 characters.
optional[text]
folder_name
The name of the folder that contains the report.
optional[text]
namespace_prefix
The namespace prefix of the report.
optional[text]
format
Indicates the format of the report. Can have one of these values: Tabular, Summary, Matrix, or Joined.
optional[text]
is_deleted
Indicates whether the report is deleted.
optional[boolean]
created_date
The date and time when the report was created.
optional[datetime]
created_by_id
The ID of the user who created the report.
optional[text]
last_modified_date
The date and time when the report was last modified.
optional[datetime]
last_modified_by_id
The ID of the user who last modified the report.
optional[text]
last_referenced_date
The date and time when the report was last referenced.
optional[datetime]
last_run_date
The date and time when the report was last run.
optional[datetime]
last_viewed_date
The date and time when the report was last viewed.
optional[datetime]
Last updated
Was this helpful?

