trying to fetch parent department of a department....
# suitescript
r
trying to fetch parent department of a department. Can someone help me fix the syntax of lookupField
Copy code
var fieldLookUp = search.lookupFields({
   type: search.Type.DEPARTMENT,
   id: i_department,
   columns: ['parent']
});
e
looks good, except i_department is a variable, right?
r
Yes. For some reason it's not allowing 'parent' as column ID. Not sure why.
b
fields and columns are not required to be the same between searches and records
the parent is not available as a search column
you can the columns available while creating the search in the ui