% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::contact::Import - Batch contact importing
use FS::contact::Import;
#import
FS::contact::Import::batch_import( {
file => $file, #filename
type => $type, #csv or xls
format => $format, #default
agentnum => $agentnum,
job => $job, #optional job queue job, for progressbar updates
pkgbatch => $pkgbatch, #optional batch unique identifier
} );
die $error if $error;
#ajax helper
use FS::UI::Web::JSRPC;
my $server =
new FS::UI::Web::JSRPC 'FS::contact::Import::process_batch_import', $cgi;
print $server->process;
Batch contact importing.
Load a batch import as a queued JSRPC job
Not enough documentation.
Hey! The above document had some coding errors, which are explained below:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'