NickSuite
09/20/2021, 8:05 PMSELECT id, custbody_url FROM transaction WHERE recordtype is INVOICE AND mainline is true AND custbody_url is null AND custbodyc_sftransid is NOT NULL FETCH FIRST 15 ROWS ONLY
Clay Roper
09/20/2021, 8:17 PMtransaction
table. The transaction
table gives you header / main line fields, whereas the transactionline
table gives you access to transaction item lines. You can remove any reference to mainline.
• recordtype needs to be a string, and it is very likely something like "CustInvc" for a customer invoice (off the top of my head) so recordtype = 'CustInvc'
• To limit number of results in a SuiteQL query, you need to add a RowNum
comparison to your WHERE clause - e.g. RowNum <= 15
NickSuite
09/21/2021, 4:16 AMNickSuite
09/21/2021, 4:38 AMSELECT id, custbodytrans_url FROM Transaction WHERE TRANSACTION.TYPE IN ("custinvc") AND custbodytrans_url is null AND custbodyc_sftransid is NOT NULL AND RowNum <= 15;
NickSuite
09/21/2021, 5:08 AMSELECT id, custbodytrans_url FROM Transaction WHERE (TRANSACTION.TYPE) in ('CUSTINVC');
Getting 0 results.tdietrich
09/21/2021, 6:22 AMtdietrich
09/21/2021, 6:22 AMSELECT TOP 15
Transaction.ID,
Transaction.TranID,
Transaction.TranDate,
BUILTIN.DF( Transaction.Status ) AS Status,
BUILTIN.DF( Transaction.Entity ) AS Entity
FROM
Transaction
WHERE
( Type = 'CustInvc' )
tdietrich
09/21/2021, 6:24 AMNickSuite
09/21/2021, 10:34 AM