Skip to content
Denne side findes på dansk. Læs på dansk
HeyMySocial

Lead file format

The columns, accepted headings, dates and statuses of a CSV file of leads, and how a row that was imported before is recognized the second time.

Use a lead file for people who asked to be contacted somewhere HeyMySocial did not see: a trade fair list, an old spreadsheet, an export from a booking system. Each row becomes a lead with its contact and goes through the same intake as a lead from your website, so the rules for duplicates and statuses are the same.

Columns

ColumnHeadings recognisedNeededWhat it is
namename, navn, full name, fulde navn, kontakt, contactOne of name, email or phoneThe person's name.
emailemail, e-mail, mail, email address, e-mailadresseOne of name, email or phoneTheir email address. It is also how a sales file can find the lead later.
phonephone, telefon, tlf, mobile, mobil, phone numberOne of name, email or phoneTheir phone number.
companycompany, firma, virksomhed, organisation, organizationOptionalThe company they belong to.
captured_atcaptured_at, date, dato, created, created at, oprettet, receivedOptionalWhen the lead arrived, in the workspace's time zone. Left empty, the moment of the import is used. It cannot be more than a day in the future.
statusstatus, stage, faseOptionalWhere the lead already is: new, contacted, qualified, disqualified, opportunity, won or lost. Left empty, the lead is new. A lead given as won becomes an opportunity until its sale is imported.
external_idexternal_id, id, lead id, sale id, invoice, faktura, fakturanummer, order id, ordrenummerOptionalThe lead's id in your own system. A sales file can point at it.
campaign_refcampaign_ref, campaign, kampagne, utm_campaignOptionalThe campaign the lead belongs to. A reference no campaign in the workspace has is listed for review; the lead is still imported.
tracking_linktracking_link, link, link codeOptionalThe code of the tracked link the lead came through.
notenote, notes, comment, kommentar, besked, messageOptionalA note kept on the lead.

Your file does not need these exact headings. The import screen reads the header row and proposes a column for each field from the headings in the table. Capital letters do not matter, and underscores and dashes count as spaces, so Full Name, full_name and full-name are the same heading. A heading the screen does not know stays unmapped until you choose it.

Rules for a row

  • Who it is. A row needs at least a name, an email address or a phone number, and you must map at least one of those three columns. An email address that is not a valid address leaves the row out.
  • Date. captured_at is when the lead arrived. It is read in the workspace's time zone. A date more than a day in the future is refused. Without a date the lead gets the moment of the import.
  • Status. One of new, contacted, qualified, disqualified, opportunity, won or lost, in any mix of capitals. An empty cell means new; any other word leaves the row out. The meaning of each is under lead statuses.
  • Your own id. external_id is the lead's id in your system. It is how the lead is recognized next time and how a sales file finds its lead.
  • Campaign. campaign_ref is the reference code of one of the workspace's campaigns. The lead is then attributed to that campaign because you stated it. A code no campaign has does not stop the row: the lead is imported and the unknown reference is recorded for review.
  • Tracked link. tracking_link is the code of a tracked link the lead came through.
  • Note. Stored on the lead as a note that members from the client's side can read as well.

Dates can be written in these forms, with leading zeros:

2026-03-31
2026-03-31 14:05
2026-03-31 14:05:00
2026-03-31T14:05:00
2026-03-31T14:05:00+02:00
31-03-2026
31-03-2026 14:05
31/03/2026
31/03/2026 14:05
31.03.2026
31.03.2026 14:05

A won lead needs its sale

A row with the status won is imported as an opportunity and listed in the result with that explanation. It becomes won when its sale is imported or recorded, so revenue is never guessed from a status.

The same person twice

A contact is recognized by the exact email address. When a row carries the address of a contact you already have, the contact is kept: details that were missing are filled in, and details that were already there are not overwritten. The row still becomes a new lead for that contact. If the contact has an earlier lead from the recent past, the new one is marked as its duplicate instead of being dropped, so nothing is lost and nothing is counted twice.

Importing the same file again

A row is recognized by its external_id, or otherwise by its contact details together with its date. A recognized row changes nothing and is counted under Already there.

A file with neither a date nor an id

Without captured_at the date is the moment of the import, so the same row looks different the next time and becomes a new lead. Map a date column or an id column if you may import the file again.

Sample

The rows are made up. The second row writes its date the Danish way and leaves the phone number empty.

name,email,phone,company,captured_at,status,external_id,campaign_ref,note
Anna Example,anna@example.com,+45 00 00 00 01,Example Roofing ApS,2026-03-31 09:15,new,L-1001,spring-roof,Asked for a quote on a new roof
Bo Sample,bo@example.org,,Sample Carpentry,31-03-2026,qualified,L-1002,spring-roof,Wants a call after 4 pm

A file with every column and two fictional rows is at https://heymysocial.com/docs/files/samples/leads.csv

In the app

  1. Open Leads and press Import. The screen is called Import leads and sales. You need a role that may manage leads, and you must be on the agency's own team.
  2. Under What is in the file? keep Leads, choose the CSV file and press Read the file.
  3. On Map the columns, check the proposed column for each field against the first rows of your file, which are shown below. Set a field to Not in the file when the file does not have it. Then press the import button, which says how many rows it will import.
  4. Result shows three numbers: Imported, Already there and Not imported. Below them, each row that needs your attention is listed with its line number, what happened and whether it was imported anyway.

The size and row limits are on the overview of files.

With an assistant

import_leads takes a list of rows with the same field names and runs the same importer, so a list an assistant hands over follows every rule on this page and shows up in the same import history. For a single lead an assistant uses create_lead.