importData
From AgileApps Support Wiki
Revision as of 00:09, 15 January 2011 by imported>Aeric
Upload a file and submit an import job for a specified object.
- Syntax
- <syntaxhighlight lang="java" enclose="div">
String job_id = Functions.importData(String objectName, String mappingProfile, PlatformFileBean fileBean); </syntaxhighlight>
- 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.