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.
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