Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Join assembly item to work order query (SuiteQL)
Pardon the cross-post, but I thought this might be a better place to ask this.
When I try this query:
SELECT t.tranid, t.id, i.itemid, i.description from transaction t INNER JOIN item i ON t.item = i.id WHERE recordtype = 'workorder' AND t.createdDate >= BUILTIN.RELATIVE_RANGES('LW', 'START')
I get:
Invalid search query. Detailed unprocessed description follows. Search error occurred: Field 'item' for record 'transaction' was not found.
I've looked at the Records Catalog and tried item, assembly and assemblyitem. No luck. I know the item can be joined to the work order transaction because I have existing SuiteScript that does that. Names are all different in SuiteQL, though.
0