salesforceSalesforce

Procedures and concepts for the Salesforce integration.

circle-info

The following documentation is for Salesforce v2.0.3 (BDK).

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.

Prerequisites

1. Required Books

The following Book(s) need to be added to your agent so it can learn and understand the automation procedures defined within them:

  • Salesforce

How to Add the Book(s)

  1. Go to BooksAll Books.

  2. Search for the name of the book and click on it.

  3. Click on Install or Add Connection to add the book to your agent.

  4. If adding a connection, you'll be prompted for connectivity details.

Connectivity

This section outlines the available methods for connecting to the Book, along with the required configuration details for each.

This books supports the connectivity methods described in this section.In here you will find information about what information is required in order to employ each method.

Connect using Consumer Key, Consumer Secret and Domain

Connect to Salesforce using client credentials OAuth flow.

Label
Description
Type

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.

Label
Description
Type

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.

Label
Description
Type

Username

The username for authentication.

text

Password

The password for authentication.

sensitive

Security Token

The security token for authentication.

sensitive

Procedures

to create a report in salesforce

Creates a report in Salesforce.

Input Concepts

Concept
Description
Type
Required
Default Value

A CreateSalesforceReportBody to create a Report with in Salesforce

salesforce create report body

Yes

(no default)

Output Concepts

Concept
Description
Type

answer

The id of the created report

text

Examples

Create a basic Salesforce Report

Create a Report with a filter

to export a report as a excel

Exports a report as an Excel file.

Input Concepts

Concept
Description
Type
Required
Default Value

A SalesforceReport to export as an Excel file

salesforce report

Yes

(no default)

Output Concepts

Concept
Description
Type

answer

The Excel file as an IO object.

file

Examples

to export a report as a table

Exports a report as a Pyarrow Table.

Input Concepts

Concept
Description
Type
Required
Default Value

A SalesforceReport to export as a Pyarrow Table

salesforce report

Yes

(no default)

Output Concepts

Concept
Description
Type

answer

The report represented as a Pyarrow Table.

table

Examples

to retrieve some (reports) from salesforce

FILTER - CAPABLE

Retrieves reports from Salesforce.

Output Concepts

Concept
Description
Type

The reports retrieved from Salesforce.

salesforce report

Examples

Retrieve reports from Salesforce

Retrieve reports from Salesforce, filtering by name

to send an email in salesforce

Sends an email in Salesforce.

Input Concepts

Concept
Description
Type
Required
Default Value

receivers

The receivers of the email.

text

Yes

(no default)

subject

The subject of the email.

text

Yes

(no default)

body

The body of the email.

text

No

(no default)

Examples

Send an email in Salesforce

Concepts

Salesforce create report body

Information sent to Salesforce to create a report.

Field Name
Description
Type

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

Field Name
Description
Type

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?