Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. 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.