NSOA.wsapi.add(objects)
Use this function to add data to OpenAir. The function returns an error if more than 1000 objects are passed in.
Note:
For more information about the SOAP API (Web Services), see XML API and SOAP API.
See also Making SOAP Calls.
Parameters
-
objects {var} [required] — Array of OpenAir Complex Type objects, see NSOA.record.<complex type>( [id] ).
Returns
-
Array of UpdateResult objects.
Units Limit
-
20 units
+10 for each additional object passed
For more information, see Scripting Governance.
Since
-
November 16, 2013
Example
-
This sample creates a new category in OpenAir.
// Define a category object to create in OpenAir var category = new NSOA.record.oaCategory(); category.name = "New Category"; category.cost_centerid = "123"; category.currency = "USD"; // Invoke the add call var results = NSOA.wsapi.add( [category] ); // Get the new ID var id = results[0].id;
Note:This simple example does not show error checking, see Handling SOAP Errors.
See Code Samples for more examples.