SalesforceHook

Salesforce

Creates new connection to Salesforce and allows you to pull data out of SFDC and save it to a file.

View on GitHub

Last Updated: Nov. 30, 2022

Access Instructions

Install the Salesforce provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

conn_idThe name of the connection that has the parameters needed to connect to Salesforce. The connection should be of type Salesforce.
session_idThe access token for a given HTTP request session.
sessionA custom HTTP request session. This enables the use of requests Session features not otherwise exposed by simple_salesforce.

Documentation

Creates new connection to Salesforce and allows you to pull data out of SFDC and save it to a file.

You can then use that file with other Airflow operators to move the data into another data source.

Note

A connection to Salesforce can be created via several authentication options:

  • Password: Provide Username, Password, and Security Token

  • Direct Session: Provide a session_id and either Instance or Instance URL

  • OAuth 2.0 JWT: Provide a Consumer Key and either a Private Key or Private Key File Path

  • IP Filtering: Provide Username, Password, and an Organization ID

If in sandbox, enter a Domain value of ‘test’.

Was this page helpful?