Ben Tanner
11/15/2022, 9:01 PMselect id, status from transaction where id = 1234
the result comes back with a status of B
. But for some reason select id, status from transaction where id = 1234 and status = 'B'
I get no results. I have also used the query module in a test script and see the same behavior.
Is there something different with how the status field is handled? This is driving me crazy!scottvonduhn
11/15/2022, 10:02 PM'SalesOrd:B'
for the status filter. You need to use the value form the SearchFilter column in this SA article: https://suiteanswers.custhelp.com/app/answers/detail/a_id/50165
As for why the status column as displayed does not match the value you are searching on, that drives me crazy too.tdietrich
11/15/2022, 10:02 PMSELECT TOP 10 TranID, Status, <http://BUILTIN.CF|BUILTIN.CF>( Status ), BUILTIN.DF( Status ) FROM transaction WHERE Status = 'SalesOrd:B'
This might help explain how it really works: https://timdietrich.me/blog/netsuite-suiteql-sales-report/
Scroll down to "Understanding the Transaction Statuses, BUILTIN.CF, and the BUILTIN.DF Functions."scottvonduhn
11/15/2022, 10:04 PMtdietrich
11/15/2022, 10:04 PMscottvonduhn
11/15/2022, 10:07 PMSets the field usage context to CRITERIA
I would never have guessed how it worked from that alone. https://suiteanswers.custhelp.com/app/answers/detail/a_id/99191/loc/en_USBen Tanner
11/15/2022, 10:10 PM