Create()

create
The create method is used to create one or more records. Currently, the system limits the user to creating100records in a single create call. Currently, the system only allows you to create one type of record, but will allow an arbitrary list of records before GA.

Arguments
The create method takes an array of records of any defined record type. Records must be constructed to match the object definitions.

Return
The create method returns a data element. The data element will contain a list of records matching the list of records created, but will contain only the key field. For standard objects like CUSTOMER and ARINVOICE, this value will be 'RECORDNO'. For platform objects, the value will be ID.

Create a standard object
The following example shows how to create a vendor record. &lt;create&gt; &lt;vendor&gt; &lt;vendorid&gt;Unit - A-1208&lt;/vendorid&gt; &lt;name&gt;this is the name8&lt;/name&gt; &lt;displaycontact&gt; &lt;mailaddress&gt; &lt;countrycode&gt;US&lt;/countrycode&gt; &lt;/mailaddress&gt; &lt;/displaycontact&gt; &lt;vcf_bill_siteid3&gt;FOOBAR8&lt;/vcf_bill_siteid3&gt; &lt;/vendor&gt; &lt;/create&gt;

Create a custom object
The following example shows how to create a sample custom object with most field types represented. &lt;create&gt; &lt;api_test_record&gt; &lt;name&gt;foobar1&lt;/name&gt; &lt;api_checkbox&gt;true&lt;/api_checkbox&gt; &lt;api_currency&gt;500&lt;/api_currency&gt; &lt;api_date&gt;2009-05-26&lt;/api_date&gt; &lt;api_datetime&gt;2009-05-26T12:01:01Z&lt;/api_datetime&gt; &lt;api_time&gt;12:01:01&lt;/api_time&gt; &lt;api_decimal&gt;100&lt;/api_decimal&gt; &lt;api_email&gt;aharris@intacct.com&lt;/api_email&gt; &lt;api_integer&gt;100&lt;/api_integer&gt; &lt;api_percent&gt;50.01&lt;/api_percent&gt; &lt;api_picklist&gt;green&lt;/api_picklist&gt; &lt;api_picklistmulti&gt;red,green&lt;/api_picklistmulti&gt; &lt;api_radio&gt;green&lt;/api_radio&gt; &lt;api_checkboxes&gt;red,green&lt;/api_checkboxes&gt; &lt;api_text&gt;This is sample text 2&lt;/api_text&gt; &lt;api_textarea&gt;This is text area this is a new line itext area&lt;/api_textarea&gt; &lt;api_url&gt;https://www.intacct.com&lt;/api_url&gt; &lt;!-- the relationship field. Use the related object Name, not ID --&gt; &lt;R43332&gt;barfoo1&lt;/R43332&gt; &lt;/api_test_record&gt; &lt;/create&gt; Create a standard object from platform trigger: customer

Create a standard object from platform trigger: AR invoice

Create a standard object from platform trigger: location