Create a standard object from platform trigger: AR invoice

xmlrequest=&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;request&gt; &lt;control&gt; &lt;senderid&gt;intacct_dev&lt;/senderid&gt; &lt;password&gt;babbage&lt;/password&gt; &lt;controlid&gt;foobar&lt;/controlid&gt; &lt;uniqueid&gt;false&lt;/uniqueid&gt; &lt;dtdversion&gt;3.0&lt;/dtdversion&gt; &lt;/control&gt; &lt;operation&gt; &lt;authentication&gt; &lt;sessionid&gt;{!#CURR_SESSION!}&lt;/sessionid&gt; &lt;/authentication&gt; &lt;content&gt; &lt;function controlid="foobar"&gt; &lt;create&gt; &lt;arinvoice&gt; &lt;customerid&gt;{!R312805.name#text!}&lt;/customerid&gt; &lt;recordid&gt;{!investment.name#text!}&lt;/recordid&gt; &lt;whencreated&gt;{!investment.investment_date!}&lt;/whencreated&gt; &lt;whendue&gt;{!investment.investment_date!}&lt;/whendue&gt; &lt;description&gt;Investment invoice for {!R313033.name#text!}&lt;/description&gt; &lt;arinvoiceitems&gt; &lt;arinvoiceitem&gt; &lt;glaccountno&gt;{!R313033.equity_account!}&lt;/glaccountno&gt; &lt;amount&gt;{!investment.amount!}&lt;/amount&gt; &lt;locationid&gt;{!R313033.id!}&lt;/locationid&gt; &lt;entrydescription&gt;Investment invoice for {!R313033.name#text!}&lt;/entrydescription&gt; &lt;/arinvoiceitem&gt; &lt;/arinvoiceitems&gt; &lt;Rdeal&gt;{!R313033.id!}&lt;/Rdeal&gt; &lt;Rinvestment&gt;{!investment.id!}&lt;/Rinvestment&gt; &lt;Rinvestor&gt;{!R312805.id!}&lt;/Rinvestor&gt; &lt;/arinvoice&gt; &lt;/create&gt; &lt;/function&gt; &lt;/content&gt; &lt;/operation&gt; &lt;/request&gt;