SalesforceHook

Salesforce

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

View on GitHub

Last Updated: Jul. 25, 2021

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_idstrthe name of the connection that has the parameters we need to connect to Salesforce. The connection should be type http and include a user’s security token in the Extras field.

Documentation

Create 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

For the HTTP connection type, you can include a JSON structure in the Extras field. We need a user’s security token to connect to Salesforce. So we define it in the Extras field as {“security_token”:”YOUR_SECURITY_TOKEN”}

For sandbox mode, add {“domain”:”test”} in the Extras field

Was this page helpful?