NSOA.wsapi.modify(attributes, objects)
Use this function to modify data in OpenAir. The function returns an error if more than 1000 objects are passed in.
You need to specify the internal ID for each object passed, as well as the properties you want to modify.
For more information about the SOAP API (Web Services), see XML API and SOAP API.
See also Making SOAP Calls.
Parameters
-
attributes {var} [required] — Array of Attribute objects.
-
objects {var} [required] — Array of OpenAir Complex Type objects, see NSOA.record.<complex type>( [id] ).
Returns
-
Array of UpdateResult objects.
Units Limit
-
40 units
+20 for each additional object passed
For more information, see Scripting Governance.
Since
-
November 16, 2013
Example
-
This sample changes a customer’s email address in OpenAir.
// Modify customer's email address var customer = new NSOA.record.oaCustomer(); customer.id = 37; customer.addr_email = "newest@example.com"; // Not attributes required var attributes = []; // Invoke the modify call var results = NSOA.wsapi.modify( attributes, [customer] );
Note:This simple example does not show error checking, see Handling SOAP Errors.
See Code Samples for more examples.