Import on-prem files to Salesforce
Recipe ToolsDocument/FileMarketingDatabaseUtilitiesCRM
What it does
When someone calls this automation, it downloads files from an on-prem folder and maps them to Salesforce. The automation retries up to three times if a download fails, then stops the job if the error persists.
Who it's for
Data and analytics teams who need to sync on-prem files into Salesforce without manual uploads.
How teams use this
Sync payroll files to employee records
Load on-prem payroll CSVs into Salesforce accounts each pay period. The automation maps employer ID and participant ID so records stay linked and up to date.
Route files by job type
Extend the automation to filter files by job ID before loading them. Only files matching a specific job type are sent to Salesforce, so the right data reaches the right records.
Archive loaded files after sync
Add a step after the load completes to move processed files to an archive folder on-prem. This keeps the source folder clean and tracks which files have been synced.
How it works
- Start the file load job. Call this automation to begin. It sets up variables for the employer ID, job ID, counter, and participant ID so the flow can track each file.
- Download files from on-prem folder. Retrieve all files from the on-prem folder using Onprem Files. If a download fails, the automation retries up to three times before stopping the job.
- Map CSV data to a list. Parse the CSV file with Workato Smart List and create a FilesMapper list so the data matches Salesforce field names and formats.
- Load data into Salesforce. For each file, query the matching Salesforce list and insert or update account and content document link records with the mapped data.