ExpenseLine - setSummaryType(String summaryType)

Sets a value for the expense line summary_type field.

Table 1. Parameters
Name Type Description
summaryType String Typically you would set this to a value already specified in the expense line summary type field choice list.
Table 2. Returns
Type Description
void

//get some random CI to be used as an expense sourcevar ci =new GlideRecord("cmdb_ci_server");
ci.query();
ci.next();
 
//create expense line
var exp =new ExpenseLine(ci,234.56,"Test expense line");
exp.setSummaryType("run_business");

Output: