I’m loading a dataset with N/query. Before running...
# suitescript
j
I’m loading a dataset with N/query. Before running the query, I want to change the dataset definition to return display values instead of internal IDs. I can’t just update all of the columns’ context from
RAW
to
DISPLAY
, because I get an
INVALID_FIELD_CONTEXT
error. Is there a way to programatically tell which columns support the
query.FieldContext.DISPLAY
?
b
Wouldn't you just use BUILTIN.DF() ?
s
yup, BUILTIN.DF or BUILTIN.CF can work for you
j
i’m not running it with suiteql i’m doing something like
Copy code
query.load({ id: 'someid' })

query.runPaged({ pageSize: 100 })