Newer Version Available
WorkOrderLineItem
Represents a subtask on a work order, typically in field service. This
object is available in API
version 36.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
Work orders must be enabled in your organization.
Fields
| Field Name | Details |
|---|---|
| AssetId |
|
| Description |
|
| Discount |
|
| EndDate |
|
| LineItemNumber |
|
| ListPrice |
|
| OrderId |
|
| ParentWorkOrderLineItemId |
|
| PricebookEntryId |
|
| Product2Id |
|
| Quantity |
|
| StartDate |
|
| Status |
|
| Subtotal |
|
| TotalPrice |
|
| UnitPrice |
|
| WorkOrderId |
|
Usage
A work order line item is a child record of a work order. It represents a specific subtask on a work order.
For example, suppose a customer purchased a truck from you. The truck is represented as an
asset in your Salesforce
org. After some time, the truck needs both headlight bulbs replaced. Here’s one way
that you can use work orders and work order line items to track the repair.
- Create a work order named “Replace Headlight Bulbs” from the asset record detail page.
- Add three work order line items to the work order: “Replace Left Headlight Bulb,” “Replace Right Headlight Bulb,” and “Test Headlights.”
- Assign the work order to a technician via a queue.
- As the technician completes each line item, he or she marks the item as Completed.
- When all the line items are complete, the technician marks the work order as Completed.