mg2017
01/04/2022, 7:29 PMvar item_category = search.lookupFields({
    type: search.Type.ITEM,
    id: item_name,
    columns: 'custitem_item_category'
});
log.debug({title: "Item Category", details: item_category.custitem_item_category});
How do I get the ID value from a select field? I've always managed using a free text before. Right now it returns an empty array []Sandii
01/04/2022, 7:49 PMitem_categorymg2017
01/05/2022, 12:17 AMlog.debug({title: "Item Category", details:item_category.custitem_item_category[0].value});mg2017
01/05/2022, 12:56 AM