Guys, can anyone tell me how to add not eqal to in...
# general
h
Guys, can anyone tell me how to add not eqal to in case when formula in saved search?
t
!=
h
Its not working
t
then you're doing something else wrong
h
Copy code
case when {type} = 'Journal' and {custbody_journal_entry_type}  != 4 then 1 else 0 END
βž•
t
what is journal type 4? is that the internal ID? If so add .id to the end of the journal type field eg {custbody_journal_entry_type.id}
h
4 is internal ID and jornal entry type is a list field
s
I agree with @Tristan Day use {custbody_journal_entry_type.id}
m
What is type = journal ??
t
the transaction type
might also be vendorbill, invoice, expensereport, etc
m
If it’s record type you need to use {recordtype} not type
t
in suitescript that might be the case, but it isn't. In search, you set it as a transaction search
and filter to "type"
m
I have transaction type saved searches that use the {recordtype} well and therefore give me journal, vendorbill etc
t
seems both are true, type is a friendly name - you don't "need" to use one or the other but you do need to ensure you understand the differences - I've never used recordtype.
πŸ‘ 1
furthermore, opportunity returns null in recordtype
πŸ‘ 1
message has been deleted
seems a bit of an oversight tbh, would have expected both fields to return at least something
m
https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2015_1/schema/enum/recordtype.html @Tristan Day it's strange that you're not the record type for the opportunity
t
what can I say, I took the screenshot seconds ago.
everything else had a value, it wasn't filtered and it certainly isn't expected
I concur with you / the record browser - it should be showing in that search I did