CSV Import people

Importing people into EME is done by using a CSV file (csv delimiter and encloser can be specified during import).
The first line should indicate the names of the columns being imported. Currently these names are recognized (unknown columns will be ignored):

There are 3 columns required: “lastname”,”firstname”,”email”. The column “massmail” should be 0 or 1 (indicating whether or not that person wants newsletter and genric mails).
In the past, there were also columns “state” and “country”, but using the new feature for state and country for people, the references to those should be used. The state_code should be like the one when creating a state (e.g. “WAS” for Washington), while the country_code should be the 2-letter representation of the country (e.g. “US”, also specified when creating a country).

If the combination of “lastname”,”firstname” and “email” already exists in the database, it will be updated and not added.

A simple example of a CSV file:

"Van Liedekerke","Franky","liedekef@telenet.be","2820"
"Van Liedekerke2","Franky","liedekef@telenet.be","2820"


If you want, you can also import answers for people based on the group they’re in (remember: you can define a form field to be a “people field” and then decide to show that field for either everybody or specific groups). If you want to import answers for these fields, just add columns to your CSV with titles like “answer_XX” (XX being either the ID of the custom form field or the name). An example line (based on a field called “instructionlevel”):

"Van Liedekerke","Franky","liedekef@telenet.be","2820","master"
"Van Liedekerke2","Franky","liedekef@telenet.be","2820","novice"


Importing values for multiselect fields is as simple as concatenating the answers with “||”:

"Van Liedekerke","Franky","liedekef@telenet.be","2820","master","class A||class B"
"Van Liedekerke2","Franky","liedekef@telenet.be","2820","novice","class C||class D"

(make sure your multiselect answers correspond with the definition given in the custom field of course).