Expense
Represents an expense linked to a work order. Service resource technicians can log expenses, such as tools or travel costs.
Introduced in API version 49.0.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the account associated with the linked work order.
- Relationship name: Account
- Relationship type: relationship
- Refers to: Account
- Type: currency
- Properties: Create, Filter, Sort, Update
- Description: The amount of the expense.
- Type: textarea
- Properties: Create, Nillable, Update
- Description: A description for the expense.
- Type: percent
- Properties: Create, Filter, Nillable, Sort, Update
- Introduced: API version 51.0
- Description: The percentage deducted from the
Subtotalprice. Available in version 51.0 and later.
- Type: date
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: If the expense was incurred over multiple days, the Expense End Date is the last day that the expense covers.
- Type: string
- Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
- Description: The number that uniquely identifies the expense.
- Type: date
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: If the expense was incurred over multiple days, the Expense Start Date is the first day that the expense covers.
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The type of expense. The default value is
Billable. - Possible values:
- Billable — Billable
- Non-Billable — Non-Billable
- Type: double
- Properties: Create, Filter, Nillable, Sort, Update
- Introduced: API version 51.0
- Description: The number of items purchased in this record. Available in version 51.0 and later.
-
Type: currency
-
Properties: Filter, Nillable, Sort
-
Introduced: API version 51.0
-
Description:
The subtotal price calculated as the product of
QuantityandUnitPrice. Available in version 51.0 and later.This is a calculated field.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Introduced: API version 50.0
- Description: A title that identifies the expense.
-
Type: currency
-
Properties: Filter, Nillable, Sort
-
Introduced: API version 51.0
-
Description:
The total price of the transaction which is equal to the discounted subtotal:
Subtotal- (Discount*Subtotal). Available in version 51.0 and later.This is a calculated field.
- Type: date
- Properties: Create, Filter, Group, Sort, Update
- Description: The day that the expense was incurred, or the payment date for the expense.
- Type: currency
- Properties: Create, Filter, Nillable, Sort, Update
- Introduced: API version 51.0
- Description: The price of one item on the record. Available in version 51.0 and later.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the work order associated with the expense.
- Relationship name: WorkOrder
- Relationship type: relationship
- Refers to: WorkOrder
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version.
-
ExpenseChangeEvent: Introduced in API version 55.0.