Sync Salesforce export to BigQuery
Recipe ToolsMarketingCRMDirectory ServicesCloud PlatformNLUArtificial Intelligence
What it does
When a scheduled time arrives, this automation exports Salesforce records using a bulk SOQL query. The data flows through Google Cloud Storage into BigQuery, and the job report logs the outcome so the team knows it ran.
Who it's for
Data and analytics teams who need Salesforce data in BigQuery on a regular schedule without manual exports.
How teams use this
Sync Salesforce to analytics daily
Run the export every day so analysts always have fresh Salesforce data in BigQuery for reporting and dashboards. The schedule keeps the data current without manual work.
Monitor sync health in Slack
Add a Slack notification step after the job report so the team gets an alert when the sync completes or fails. Only the notification channel changes, the sync stays the same.
Filter records by a custom field
Modify the SOQL query to include a where clause that only exports Salesforce records matching a condition, such as a region or status. The filtered export then loads into BigQuery as before.
How it works
- Start the sync on schedule. This automation starts at a set interval every 10000 minutes so Salesforce data syncs to BigQuery regularly without someone having to start it.
- Export Salesforce records in bulk. Search records in bulk using a SOQL query in Salesforce so all matching data is retrieved at once and prepared as a file for export.
- Upload the file to Cloud Storage. Stream the Salesforce export to Google Cloud Storage as a staging point before the data moves into BigQuery for analysis.
- Load data into BigQuery table. Load the file from Google Cloud Storage into a BigQuery table so the team can query and analyze the Salesforce data immediately.
- Log the job outcome. Record the result to the job report so the team sees whether the sync succeeded or if an error stopped the run.