Chris
05/18/2023, 8:14 PMvar columns = savedSearch.columns;
for (var i = 0; i < columns.length; i++) {
var column = columns[i];
log.debug({
title: 'column',
details: column,
});
//returns: {"name":"formulatext","label":"label123","type":"text","formula":"'CreateApprovedPurchase'","sortdir":"NONE"}
log.debug({
title: 'column label',
details: column.label,
});
//returns: Label123
log.debug({
title: 'column Type',
details: column.type,
})
//Expecting 'text', but it is blank
log.debug({
title: 'column Type Workaround',
details: typeof column.formula,
});
//returns: stringbattk
05/18/2023, 10:42 PMChris
05/18/2023, 10:42 PMbattk
05/18/2023, 10:42 PMbattk
05/18/2023, 10:44 PMbattk
05/18/2023, 10:44 PM