Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
AddressBook Change SuiteQL Issues
I use this query to link sales order transactions with shipping address.
"SELECT
* FROM
transaction AS tr
JOIN transactionLine AS tl ON tl.transaction = tr.ID
FULL JOIN inventoryAssignment AS inv ON inv.transactionline = tl.id and inv.transaction = tl.transaction
LEFT OUTER JOIN InventoryNumber AS invN ON invN.ID = inv.InventoryNumber
JOIN transactionShippingAddress AS sa ON sa.nkey = tr.shippingaddress
JOIN transactionShippingAddressbook AS sab ON sab.addressbookaddress = tr.shippingaddress"
However, I noticed that if I update the shipping address data on the customer, the join fields
transactionShippingAddress.nkey
transactionShippingAddressbook.addressbookaddress
they change because a new key is created when saving.