Newer Version Available

This content describes an older version of this product. View Latest

Expense

Represents an expense linked to a work order. Service resource technicians can log expenses, such as tools or travel costs. This object is available in API version 49.0 and later.

Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

Fields

Field Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the account associated with the linked work order.
Amount
Type
currency
Properties
Create, Filter, Sort, Update
Description
The amount of the expense.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only if the multicurrency feature is enabled. Contains the ISO code for any currency allowed by the organization.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
A description for the expense.
ExpenseEndDate
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.
ExpenseNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
Number that uniquely identifies the expense.
ExpenseStartDate
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.
ExpenseType
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The type of expense. Possible values are:
  • Billable
  • Non-Billable
The default value is Billable.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the user who owns the expense record.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A title that identifies the expense.
This field is available in API version 50.0 and later.
TransactionDate
Type
date
Properties
Create, Filter, Group, Sort, Update
Description
The day that the expense was incurred, or the payment date for the expense.
WorkOrderId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the work order associated with the expense.

Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

ExpenseFeed
Feed tracking is available for the object.
ExpenseHistory
History is available for tracked fields of the object.
ExpenseOwnerSharingRule
Sharing rules are available for the object.
ExpenseShare
Sharing is available for the object.