recommend posting that in <#C01FBBZ8PQC|>
# suitescript
s
recommend posting that in #C01FBBZ8PQC
for SuiteQL it's the Records Catalog that should be your guide to the schema, not the Analytics screens
m
Thank-you. I was unaware of the Records Catalog. Super helpful!
s
yes, back in the beginning it was the Analytics screens which were often incorrect. IIRC the new Records Catalog often just died when it was new. Now it's semi stable and seems to be semi-correct so improvements over the frustration that came before!
t
@Mike Robbins This might help.
Copy code
SELECT
	Transaction.TranID,
	Transaction.TranDate,
	TransactionLine.Location,
	BUILTIN.DF( TransactionLine.Location ) AS LocationName
FROM
	Transaction
	INNER JOIN TransactionLine ON
		( TransactionLine.Transaction = Transaction.ID )
		AND ( TransactionLine.MainLine = 'T' )
WHERE
	( Transaction.Type = 'SalesOrd' )
m
Thanks! It was the
MainLine = 'T'
that I was missing. I’ve worked extensively with the ODBC tables which has location on the transactions table so I wasn’t expecting this.
s
it is unfortunate that NS presents a different schema for each access method.
💯 1