Update()

update
The update method is used to update one or more records. Currently, the system limits the user to updating100 records in a single call. The system will only update fields included in the records. Fields not included will be ignored. To set a field's value to null, pass an empty field element.

Arguments
The update method takes an array of records of any defined record type. The records must contain thekeyfield (either theid for custom objects of thevid for standard objects) and one or more fields to update.

Return
The create method returns a data element. The data element will contain a list of records matching the list of records updated, but will contain only the key field (id or vid).

Update a standard object
The following sample demonstrates how to update multiple standard objects. &lt;function controlid="foobar"&gt; &lt;update&gt; &lt;!-- Update overwrites only the values listed. To set a value to null, pass the value as empty. In an update, you must pass the ID so we know which vendor to update. --&gt; &lt;vendor&gt; &lt;vendorid&gt;201&lt;/vendorid&gt; &lt;CF_TEST&gt;foobar 1&lt;/CF_TEST&gt; &lt;!-- CF_TEST is a custom field --&gt; &lt;/vendor&gt; &lt;vendor&gt; &lt;vendorid&gt;202&lt;/vendorid&gt; &lt;CF_TEST&gt;foobar 2&lt;/CF_TEST&gt; &lt;/vendor&gt; &lt;/update&gt; &lt;/function&gt;

Update a custom object: api_test_record
The following sample demonstrates how to update a custom object. &lt;function controlid="foobar"&gt; &lt;update&gt; &lt;!-- update only changes fields included in the request. To make a field null, pass an empty value in the field --&gt; &lt;api_test_record&gt; &lt;!-- This needs to work based on the Id! --&gt; &lt;id&gt;34923&lt;/id&gt; &lt;name&gt;foobar11&lt;/name&gt; &lt;api_checkbox&gt;false&lt;/api_checkbox&gt; &lt;/api_test_record&gt; &lt;/update&gt; &lt;/function&gt;

Update a custom object: asset
Updating multiple assets &lt;function controlid="foobar"&gt; &lt;update&gt; &lt;asset&gt; &lt;id&gt;1158909&lt;/id&gt; &lt;name&gt;iPHone-x&lt;/name&gt; &lt;/asset&gt; &lt;asset&gt; &lt;id&gt;1160828&lt;/id&gt; &lt;name&gt;Thinkpad T61-x&lt;/name&gt; &lt;/asset&gt; &lt;/update&gt; &lt;/function&gt;