x

Main chapters

  1. Get started
  2. Workspace
  3. Editor
  4. Question types
  5. Share
  6. Results
  7. Configuration
  8. Installation and updates
  9. Profile and personal settings
  10. Account and billing
  11. FAQs
  12. Development
 Actions

Central participant database - import and export

From LimeSurvey Manual

To add many participants to the central participant database at once, import them from a CSV file. To use them in another program, or as a backup, export them as a CSV file.

Import

To add participants from a CSV file, click Import at the top of the page: Import button

The following options are available:

Import page with Choose the file to upload, Character set of file, Separator used, Filter blank email addresses and the CSV input format

  • Choose the file to upload: the CSV file.
  • Character set of file and Separator used: detected automatically by default ((Automatic), (Autodetect)).
  • Filter blank email addresses: skips rows without an email address.

The box CSV input format on the page explains the file format:

The file should be a standard CSV (comma delimited) file with optional double quotes around values (default for most spreadsheet tools). The first line must contain the field names. The fields can be in any order.

Mandatory field: email

Optional fields: firstname, lastname, blacklisted, language


Steps to import

1) Choose the file, check the settings and click Upload.

2) Map the additional fields of the CSV file. Drag each field under CSV field names either next to an attribute under Existing attribute to import its data into that attribute, or into Attributes to be created to create a new attribute. A new attribute is of the type text box; you can change the type later. Fields you leave under CSV field names are not imported.

CSV attribute mapping with customer_no under Attributes to be created and the CSV field department mapped to the existing attribute Department

In the screenshot above, the CSV field department is imported into the existing attribute Department, and a new attribute customer_no is created from the CSV field of the same name.

Participants from the CSV file who already exist in the central participant database are not imported again. If the file has a participant_id column, existing participants are found by their participant ID. Otherwise they are found by the combination of first name, last name and email address, among the participants you own.

A new participant gets the participant ID from the participant_id column. This ID must be a UUID, the format LimeSurvey uses for participant IDs (for example 0a1b2c3d-4e5f-4071-8293-a4b5c6d7e8f9). Rows that would create a new participant with another participant ID are not imported, and the summary lists them with their line number. If the column is empty, LimeSurvey creates a new participant ID. Existing participants with an older participant ID in another format are still found and can be updated. (New in 7.8.0 )

Check Overwrite existing participant attribute values if a duplicate participant is found? to update these existing participants from the CSV file: their values of the mapped attributes, their language and their blocklist status are updated. First name, last name and email address are never changed by the import. Only participants you are allowed to edit are updated.

3) Click Continue and wait until the import is done. A short summary is displayed.

CPDB CSV summary saying the CSV file was uploaded and CPDB entries were created successfully

Click OK to return to the list of participants, which now shows the imported participants.

Export participants

To export participants, click Export all participants at the top of the page: Export all participants button

A dialog asks which attributes you want to export.

You can export:

  • None of the additional attributes
  • All the additional attributes (Select all)
  • Certain additional attributes
Export participants dialog with Attributes to export listing Department and customer_no and a Select all checkbox

The exported file is a CSV file. Blocklisted participants are only exported if Hide blocklisted participants is set to No in the blocklist settings.

Export filtered participants

To export only some participants, first use the search filters. Then select the filtered participants with the checkbox in the header of the list and click Export in the bar at the bottom of the list.

See also