Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Return additional data (tranid) when add salesOrder?
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.