<% include("/elements/header.html",'Batch Contacts Import') %> Import a file containing customer contact records.

<& /elements/form-file_upload.html, 'name' => 'ContactImportForm', 'action' => 'process/contact-import.cgi', 'num_files' => 1, 'fields' => [ 'custbatch', 'format' ], 'message' => 'Customer contacts import successful', 'onsubmit' => "document.ContactImportForm.submitButton.disabled=true;", &> <% &ntable("#cccccc", 2) %> Format <% include( '/elements/file-upload.html', 'field' => 'file', 'label' => 'Filename', ) %>
Uploaded files can be CSV (comma-separated value) files or Excel spreadsheets. The file should have a .CSV or .XLS extension.

Default Format has the following field order:
custnum<%$req%>, last<%$req%>, first<%$req%>, title<%$req%>, comment, selfservice_access, emailaddress, workphone, mobilephone, homephone

Field information:
You must include a customer number and either a last name, first name or title.
<% include('/elements/footer.html') %> <%once> my $req = qq!*!; <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Import'); my $custbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);