Salesforce To GCS Operators¶
To use these operators, you must do a few things:
Select or create a Cloud Platform project using the Cloud Console.
Enable billing for your project, as described in the Google Cloud documentation.
Enable the API, as described in the Cloud Console documentation.
Install API libraries via pip.pip install 'apache-airflow[google]'
Detailed information is available for Installation.
to execute a Salesforce query to fetch data and load it to GCS.
gcs_upload_task = SalesforceToGcsOperator( query=QUERY, include_deleted=True, bucket_name=GCS_BUCKET, object_name=GCS_OBJ_PATH, salesforce_conn_id=SALESFORCE_CONN_ID, export_format="csv", coerce_to_timestamp=False, record_time_added=False, gcp_conn_id=GCS_CONN_ID, task_id="upload_to_gcs", dag=dag, )
For further information, look at: