Export Salesforce leads to CSV with row numbers

Recipe ToolsMarketingCRMData ParserUtilities

What it does

When a scheduled time arrives, this automation searches Salesforce for leads. It converts them to CSV format with a row number column so the team has a numbered list ready to use.

Who it's for

Sales operations teams who need to export Salesforce leads on a schedule without manual work.

How teams use this

Export leads for weekly review

Run the export every Monday morning so the team gets a fresh CSV with row numbers ready to review. The list is available without opening Salesforce.

Filter leads by status before export

Add a condition to the Salesforce search so only leads with a specific status are included in the CSV. The row numbers stay sequential for the filtered results.

Include email addresses in the export

Set the Csv Parser to include the email field from each lead record so the numbered list contains contact information. The row numbers remain in order.

How it works

  1. Run on a set schedule. This automation starts at a specified interval so the lead export happens without someone having to start it each time.
  2. Search for leads in Salesforce. Query Salesforce to retrieve all leads that match the criteria so the export includes current data.
  3. Compose CSV with row numbers. Convert the lead list into CSV format using Csv Parser and add a row number column with the list index so each row is numbered in sequence.