Using transaction `status` as a filter doesnt seem...
# suiteql
e
Using transaction
status
as a filter doesnt seem to work... What am I doing wrong? Here is a quick draft using the browser console: I can retrieve the status of a transaction and it shows
'A'
as a result. But if I use
'A'
as a condition for the same transaction, it gives zero results. I'm sure it something obvious, but I'm lost... Sorry if the question is very basic.
j
that’s weird, it’s working for me
did the status just change….
e
Nop
Same result using the query inside a script
Removing the condition gives the expected transaction, with "A" as a status in the result
Wait...
Nah, same...
The query works fine in Tim Dietrich's SuiteQL Query Tool 🤡
j
any chance you have weird characters in your quote marks
not sure if it matters but you don’t have a semicolon in second one
am grasping at straws here
e
Using things like status =
'CustInvc:A'
seem to work, despite giving the resulting column as
'A'
in the results
j
weird
e
Well, I'm now able to use
status
as a condition, but at what cost sad cow
t
@Edgar Valdes You might want to take a look and experiment with the BUILTIN.CF function: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/article_161950565221.html
👀 1
j
Noticed this in scripts some weeks ago… specify transaction in where clause like you said
1
s
There's a
transactionstatus
table which contains all the lookup values (requires the
ADMI_SETUPCOMPANY
view permission). The statuses are specific to each
trantype
👀 1
t
I had this issue as well, it doesn’t behave like a normal string. BUILTIN.CF or BUILTIN.DF is the way to go (can’t remember which it is now).
j
BUILTIN.DF
is my best friend