ExpenseAllocation - ExpenseAllocation(GlideRecord expense, GlideRecord rule)

Called when you create a new ExpenseAllocation object.

This is not needed if scripting advanced allocation rules. This object is already available as the allocation variable.

Table 1. Parameters
Name Type Description
expense GlideRecord GlideRecord identifying the source of the expense.
rule GlideRecord GlideRecord identifying the rule to use in allocating the expense line.
Table 2. Returns
Type Description
ExpenseAllocation object The ExpenseAllocation object just created.

var allocation=new ExpenseAllocation(expenseGlideRecord, ruleGlideRecord);