Sync SQL data to Salesforce Wave Analytics on schedule
Recipe ToolsMarketingCRM
What it does
When a scheduled time arrives, this automation extracts data from SQL and formats it as base64-encoded CSV with JSON metadata. It uploads the dataset to Salesforce Wave Analytics in parts, then processes it so someone can query it in Wave.
Who it's for
Data and analytics teams who need to refresh Wave datasets from SQL on a regular cadence without manual uploads.
Apps used
How teams use this
Refresh Wave datasets from SQL nightly
Run this automation every night to pull fresh data from SQL and load it into Wave Analytics. The team wakes up to updated dashboards without any manual work.
Load data into a new Wave app
Point this automation at a different Wave app by changing the dataset alias and container. The same upload flow works for any Wave destination the team needs.
Add data validation before processing
Include a condition to check row counts or data quality metrics from SQL before Salesforce processes the External Data. Bad data is caught before Wave ingests it.
Notify the team when uploads complete
Add a Slack notification step after processing starts so the team knows the dataset is ready to query. Include the dataset name and row count in the message.
How it works
- Run on a specified interval. This automation starts at the scheduled time set by the team, such as daily or weekly.
- Create the dataset header in Wave. Create an External Data object in Salesforce that defines the column names and data types for the Wave dataset. This acts as the schema.
- Encode and upload each data part. For each chunk of SQL data under 10 MB, Workato Service encodes it as base64 CSV and creates an External Data Part object in Salesforce so Wave receives the full dataset.
- Start processing the dataset. Update the External Data object to set the action to process, which tells Salesforce to ingest and index the data so it is ready to query in Wave.
- Log the upload result. Workato Service records the dataset name and metadata definition to the job report so the team can track which datasets were uploaded and when.