Push large lead files from Files to Salesforce daily

Recipe ToolsMarketingCRM

What it does

When a scheduled time arrives each day at midnight, this automation searches Files for lead batches. If files are found, the contents are read and new leads are created in Salesforce in bulk from the CSV data.

Who it's for

Sales operations teams who need to import lead files into Salesforce on a daily schedule without manual uploads.

How teams use this

Import daily lead batches automatically

Run the sync every morning so new leads from CSV files are in Salesforce before the sales team starts work. No manual file uploads are needed.

Route leads by source after import

After leads are created in bulk, add a step to assign them to sales reps based on territory or source. The file sync stays the same and only the assignment logic changes.

Filter leads by company size before sync

Add a condition to check the CSV data and only create leads where the company size meets your criteria. This ensures only qualified leads enter Salesforce from the file.

How it works

  1. Run daily at midnight. This automation starts every day at 12:00 AM to check for new lead files and begin the import process.
  2. Search for lead files. Search Files for CSV files containing lead data. The results are checked to see if any files exist before proceeding.
  3. Read the file contents. When files are found, retrieve the full contents of the CSV file from Files so the lead data can be sent to Salesforce.
  4. Create leads in bulk. Push all leads from the CSV file into Salesforce at once. A log confirms how many lead records were created in bulk.