does anyone know how to create an N/query wiht cus...
# suitescript
m
does anyone know how to create an N/query wiht custom lists? if i use the custom list internal id as type i get an invalid type error and if i use query.Type.CUSTOM_LIST i cannot realize how to identify the list
b
use the script id
m
you mean as a field in the conditions
b
as in the type of the query should be the script id
it should not be the internal id
m
oh i see what you mean
thank you
b
if you really wanted to, you can use
query.Type.CUSTOM_LIST
as part of the type, its simply the prefix for custom list script ids,
customlist
👍🏻 1