Greetings,
When we add a SalesOrder via SuiteTalk, the returnXml (sample below) includes the internalId of the newly-created SalesOrder. However, our integration that is calling this also need to know the Order ID value (field "tranid"). Is there a way I can also return this value?
We already have an existing SuiteScript After_Submit customization when a SalesOrder is inserted via SuiteTalk. While easy enough to get the tranid, I don't know how I can add this to the returnXml. Any clues/suggestions are greatly appreciated. As a work-around, I know I can have our integration make a subsequent SuiteTalk call to search for the SalesOrder and return this value, but this is extra work on both systems and an extra round-trip I'd rather avoid.
Thanks in advance for your help!!
Steve Egelman
--Here's a sample of the current returnXml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2014_2.platform.webservices.netsuite.com">
<platformMsgs:nsId>WEBSERVICES_3424833_01062016418247958641011752_4bd79df86923a</platformMsgs:nsId>
</platformMsgs:documentInfo>
</soapenv:Header>
<soapenv:Body>
<addResponse xmlns="urn:messages_2014_2.platform.webservices.netsuite.com">
<writeResponse>
<platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2014_2.platform.webservices.netsuite.com"/>
<baseRef internalId="123067" type="salesOrder" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2014_2.platform.webservices.netsuite.com"/>
</writeResponse>
</addResponse>
</soapenv:Body>
</soapenv:Envelope>