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
How to get Purchase Order Line - Transaction Column/Line Custom Field?
Hi All,
I have a Transaction Column / Line custom field on VendorBill. How do I get the value set on the Transaction Column / Line custom field using SuiteQL.
Below query would pull up the Transaction and the Transaction line details. Which table should I join to get the value assigned on Transaction Column / Line custom field ?
Query:
SELECT BUILTIN.DF(TransactionLine.createdfrom) AS PurchaseOrder, Transaction.transactionnumber, TransactionLine.quantity,TransactionLine.id, Transaction.Type , Transaction.TranID FROM TransactionLine INNER JOIN Transaction ON ( Transaction.ID = TransactionLine.Transaction ) WHERE (Transaction.type='VendBill' AND TransactionLine.mainline='F' AND TransactionLine.createdfrom IN (SELECT id from transaction WHERE type='PurchOrd')) ORDER BY Transaction.id DESC