importData

From LongJump Support Wiki
Revision as of 00:09, 15 January 2011 by imported>Aeric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Upload a file and submit an import job for a specified object.

Syntax
String job_id = Functions.importData(String objectName, String  mappingProfile, PlatformFileBean fileBean);
Parameters
objectName
The name of the object to import data into.
mappingProfile
The name of the mapping profile. That profile (defined in the platform GUI) maps the CSV data fields to fields in the object.
fileBean
The bean that wraps a CSV data file.
Returns
A string containing the ID of the submitted job. That ID can then be used to check the status of the job using the Java getStatus resource.