NSOA.wsapi.delete(objects)
Use this function to delete data in OpenAir based on an internal ID. 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 deletes a customer from OpenAir.
// Delete customer with internal ID 66 var customer = new NSOA.record.oaCustomer(); customer.id = 66; // Invoke the delete call var results = NSOA.wsapi.delete( [customer] );
Note:This simple example does not show error checking, see Handling SOAP Errors.
See Code Samples for more examples.