Runs the import associated with the ID provided.
Applies to
My APIs > integrator.io API runtime object > imports
Argument
options <Object, required>
Contains the following properties:
_id <String, required>
– the ID of the import to rundata <Array, required>
– the data to importsettings <Object>
- settings to pass to import
Both the “data” and “settings” can be passed to the JSRT function in the following manner:
imports.run({_id: '6f7••••••••••••••••••e46', data: myData, settings: impSettings})
The following handlebar format needs to be used in the import to pass the data dynamically:
NetSuite - Array {{[0].id}} ; Object {{id}}
Others - Array {{data.[0].id}} ; Object {{data.id}}
Returns
<Array>
Each response array has the following properties:
statusCode <Integer>
– 200 (success), 422 (error), or 401 (connection is offline)ignored <Boolean>
– true if ignored by the import; dependent on import configurationerrors <Array>
– the errors returned by the import_json <Object>
– the raw response object returned by the import application
Exceptions
This function throws an error if the API call fails for any reason.
Comments
0 comments
Please sign in to leave a comment.