Has anyone managed to use `BUILTIN.HIERARCHY`?
# suiteql
m
Has anyone managed to use
BUILTIN.HIERARCHY
?
s
for which table you’re trying?
select builtin.hierarchy(parent, 'DISPLAY_JOINED') from department
this example I’ve
d
Did you manage to make this example work? I always get an error
s
for me yes, it works
I use NetSuite2.com datasource if it will make any difference
m
Thanks Selcuk. I'm trying on a custom record created from a custom segment. I get an unexpected error when I try your example in N/query
s
if the script id of the parent field is different, it would be changed. otherwise it would be most probably that NetSuite does not support it for custom records
m
Nah
parent
is correct, and I get an error with the department table as well through SuiteScript
s
I tried with N/query and for me also it threw unexpected error