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.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see Expense in the Agentforce Life Sciences Developer Guide, Event Management Guide, Field Service Developer Guide, and Object Reference for the Salesforce Platform.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
AccountId | Account ID | reference | 18 | |||
Amount | Amount | currency | 18 | 2 | ||
CreatedById | Created By ID | reference | 18 | |||
CreatedDate | Created Date | datetime | ||||
Description | Description | textarea | 32000 | |||
Discount | Discount | percent | 5 | 2 | ||
ExpenseEndDate | End Date | date | ||||
ExpenseNumber | Expense Name | string | 255 | |||
ExpenseStartDate | Start Date | date | ||||
ExpenseType | Expense Type | picklist | 40 | |||
Id | Expense ID | id | 18 | |||
IsDeleted | Deleted | boolean | ||||
LastModifiedById | Last Modified By ID | reference | 18 | |||
LastModifiedDate | Last Modified Date | datetime | ||||
LastReferencedDate | Last Referenced Date | datetime | ||||
LastViewedDate | Last Viewed Date | datetime | ||||
OwnerId | Owner ID | reference | 18 | |||
Quantity | Quantity | double | 12 | 2 | ||
Subtotal | Subtotal | currency | 18 | 2 | ||
SystemModstamp | System Modstamp | datetime | ||||
Title | Title | string | 255 | |||
TotalPrice | Total Price | currency | 18 | 2 | ||
TransactionDate | Transaction Date | date | ||||
UnitPrice | Unit Price | currency | 18 | 2 | ||
WorkOrderId | Work Order ID | reference | 18 |
Feed tracking for Expense.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see StandardObjectNameFeed in the Object Reference for the Salesforce Platform.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
BestCommentId | Best Comment ID | reference | 18 | |||
Body | Body | textarea | 10000 | |||
CommentCount | Comment Count | int | 9 | |||
CreatedById | Created By ID | reference | 18 | |||
CreatedDate | Created Date | datetime | ||||
Id | Feed Item ID | id | 18 | |||
InsertedById | InsertedBy ID | reference | 18 | |||
IsDeleted | Deleted | boolean | ||||
IsRichText | Is Rich Text | boolean | ||||
LastModifiedDate | Last Modified Date | datetime | ||||
LikeCount | Like Count | int | 9 | |||
LinkUrl | Link URL | url | 1000 | |||
ParentId | Parent ID | reference | 18 | |||
RelatedRecordId | Related Record ID | reference | 18 | |||
SystemModstamp | System Modstamp | datetime | ||||
Title | Title | string | 255 | |||
Type | Feed Item Type | picklist | 40 |
History for tracked fields of Expense.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see StandardObjectNameHistory in the Object Reference for the Salesforce Platform.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
CreatedById | Created By ID | reference | 18 | |||
CreatedDate | Created Date | datetime | ||||
DataType | Datatype | picklist | 40 | |||
ExpenseId | Expense ID | reference | 18 | |||
Field | Changed Field | picklist | 255 | |||
Id | Expense History ID | id | 18 | |||
IsDeleted | Deleted | boolean | ||||
NewValue | New Value | anyType | 255 | |||
OldValue | Old Value | anyType | 255 |
Sharing for Expense.
This guide only lists certain information for each object. For more information, including descriptions of the fields, see StandardObjectNameShare in the Object Reference for the Salesforce Platform.
| Field Name | Field Label | Type | Digits | Length | Precision | Scale |
|---|---|---|---|---|---|---|
AccessLevel | Custom Object Access | picklist | 40 | |||
Id | Custom Object Share ID | id | 18 | |||
IsDeleted | Deleted | boolean | ||||
LastModifiedById | Last Modified By ID | reference | 18 | |||
LastModifiedDate | Last Modified Date | datetime | ||||
ParentId | Parent ID | reference | 18 | |||
RowCause | Row Cause | picklist | 40 | |||
UserOrGroupId | User/Group ID | reference | 18 |