Bulk Registration of Contacts
NOTE: This page describes how to bulk register contacts that are cases. To bulk register contacts that are mobile workers, see this page.
Â
For certain projects, it makes sense to register all the participants in the system ahead of time.  This can be done by uploading their information through an Excel file using the Excel Importer.  Create an Excel file with the following information/headers:
Case Name:Â The name of the registered case (or some other way to quickly identify who the person is). Â
contact_phone_number: This is the phone number of the person. Â The phone number should include the country code and contain no spaces and not have a + symbol. Â Also, be sure to define this column as a Text column in Excel, otherwise the phone number may not import correctly. Â For example, a US number should be 12065551234. Â An Indian number would be 919560187280
contact_phone_number_is_verified: This should be set to 1 for every item. Â It specifies that the phone number for the person is correct.Â
commcare_email_address: This is optional, but can be specified if you prefer to email your mobile workers (instead of sending a message). Â
case id: A blank column needs to be added here. Â This is the ID of the item (but since these are new items, they have no ID). Â
Additional Data: If there is other information you want to add about the person (ex. gender, age, etc.) you can also include that as additional columns in the Excel file. sample_excel_contacts.xls
An example Excel file can be found here:Â sample_excel_contacts.xls
Uploading Contacts
Go to the Data tab, then select Import Cases from Excel.
Select the Excel file that you want to import. Â Make sure that "This file has column headers" is set to True and select Next.
Specify the case type for the upload. Â This should be used by the Surveys in your application (ex. your case type is contact). Â If you haven't setup an SMS Survey, SMS Survey. Â Â
Choose the Excel column as the Case ID and Corresponding case field as the case id column in your Excel document.
Make sure "Create new records if there is no matching case" is checked.
Select Next step
The next page lets you map the columns in your Excel document to case properties. Â
Case Name, choose the existing "name" case property
For contact_phone_number, check off "Create a new property instead" and type in  and contact_phone_number
Follow the same step for contact_phone_number_is_verified and any other case properties.
Select Confirm Import. Â This will create all the contacts in the Excel document.Â