Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.