Newer Version Available

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

ReturnOrderLineItem

Represents a specific product that is returned or repaired as part of a return order in field service. This object is available in API version 42.0 and later.

Return orders are available in Lightning Experience, Salesforce Classic, the Salesforce app, the Field Service Lightning mobile app for Android and iOS, and communities built using Salesforce Tabs + Visualforce.

Supported Calls

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

Special Access Rules

Field Service Lightning must be enabled.

Fields

Field Name Details
AssetId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The asset associated with the return order line item. One or more of the following fields must be filled out: AssetId, OrderItemId, Product2Id, ProductItemId, and ProductRequestLineItemId.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Notes or context about the return order line item.
DestinationLocationId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The location where the items are being returned to. For example, if the return order tracks the return of products from a technician’s van to a warehouse, the warehouse is the destination location.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the return order line item was last modified. Its label in the user interface is Last Modified Date.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the return order line item was last viewed.
OrderItemId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The order product associated with the return order line item. One or more of the following fields must be filled out: AssetId, OrderItemId, Product2Id, ProductItemId, and ProductRequestLineItemId.
ProcessingPlan
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
Indicates the preferred fate of the items following their return. Available values are:
  • Repair—Repair the items and return them to the owner
  • Discard—Discard the items
  • Salvage—Salvage the items’ working parts
  • Restock—Return the items to your inventory
Product2Id
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The product associated with the return order line item. One or more of the following fields must be filled out: AssetId, OrderItemId, Product2Id, ProductItemId, and ProductRequestLineItemId.
ProductItemId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The product item representing the location of the product at the start of the return. One or more of the following fields must be filled out: AssetId, OrderItemId, Product2Id, ProductItemId, and ProductRequestLineItemId.
ProductRequestLineItemId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The product request line item associated with the return order line item. One or more of the following fields must be filled out: AssetId, OrderItemId, Product2Id, ProductItemId, and ProductRequestLineItemId.
QuantityReturned
Type
double
Properties
Create, Filter, Sort, Update
Description
The quantity of items being returned. If multiple types of products are being returned, track each product in a different return order line item.
QuantityUnitOfMeasure
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Units of the returned items; for example, kilograms or liters. Quantity Unit of Measure picklist values are inherited from the Quantity Unit of Measure field on products.
ReasonForReturn
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The reason the items are being returned. Available values are:
  • Damaged
  • Defective
  • Duplicate Order
  • Wrong Item
  • Wrong Quantity
  • Not Satisfied
  • Outdated
  • Other
RepaymentMethod
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The method by which the customer or owner will be reimbursed for the items being returned. Available values are:
  • Replace—The items will be replaced
  • Refund—The items will be returned and the owner will be refunded
  • Credit—The items will be returned and the owner will receive credit for them
  • Return—The items will be returned to the owner (for example, following their repair)
ReturnOrderId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The return order that the return order line item belongs to.
ReturnOrderLineItemNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
(Read only) Auto-generated number that identifies the return order line item.
SourceLocationId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The items’ location at the start of the return or repair. For example, if the return order tracks the return of products from a technician’s service vehicle to a warehouse, the service vehicle is the source location.