pen one
12/04/2024, 3:50 PMBUILTIN_RESULT.TYPE_STRING("TRANSACTION"."TYPE") AS "TYPE" /*{type#RAW}*/,
and my csv line value:
${result.TYPE}
I got the select statement from an Analytics dataset where the column does show the correct value.Mike Robbins
12/04/2024, 4:26 PMtype or BUILTIN_RESULT.TYPE_STRING("TRANSACTION"."TYPE") AS "TYPE" /*{type#RAW}*/ which you provided, so maybe you can just reference the type column.
For sales orders, this returns "SalesOrd" which may, or may not, be what you want.
Depending on your needs, you can use BUILTIN.DF(type) which will return "Sales Order" or just recordtype which will result in "salesorder". The latter is useful if you need to work with these records in a script.pen one
12/04/2024, 4:46 PMjen
12/04/2024, 5:34 PMpen one
12/04/2024, 6:29 PMFile ID: ${fileId});
} catch (e) {
log.error('Error Generating Report', e.message);
}
};
return {
execute
};
});