Represents information about the quantity, revenue distribution, and delivery dates for a particular OpportunityLineItem.
create(), update(), delete(), query(), retrieve(), getDeleted(), getUpdated(), describeSObjects()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| CurrencyIsoCode | picklist | CreateDefaulted on create |
Available only for organizations with the multi-currency feature enabled. Contains the ISO code for any currency allowed by the organization. This field is available in version 10.0 and later. |
| Description | string | Create | Text description of the opportunity line item schedule. Limit: 255 characters. Label is Comments. |
| IsDeleted | boolean | Defaulted on create | Indicates whether the record has been moved to the Recycle Bin (true) or not (false). Label is Deleted. |
| OpportunityLineItemId | reference | Create | Required. ID of the associated OpportunityLineItem. |
| Quantity | double | Create | Required. The total number of units to be scheduled in a quantity schedule. See Allowed Quantity and Revenue Field Values for more information. |
| Revenue | currency | Create | The revenue that should be recognized, or the quantity that should be shipped, or both - depending upon the value of Type. See Allowed Quantity and Revenue Field Values for more information. |
| ScheduleDate | date | Create | Required. The date the associated OpportunityLineItem is to be scheduled for an event: delivery, shipping, or any other date you wish to track. |
| Type | picklist | Create | Required. The type of the schedule. Required when inserting an OpportunityLineItemSchedule. Valid values include Quantity, Revenue, or Both. See Allowed Type Field Values for more information. |
| Value of HasRevenueSchedule on line item | Value of HasQuantitySchedule on line item | Allowable Type Values |
|---|---|---|
| false | false | Revenue, Quantity, both |
| false | true | Quantity |
| true | false | Revenue |
| true | true | both |
The allowable Quantity and Revenue field values depend on the value of the Type field:
| Type Value | Allowable Quantity Value | Allowable Revenue Value |
|---|---|---|
| Revenue | Null | Non-null |
| Quantity | Non-null | Null |
| both | Non-null | Non-null |
The user must have edit access rights on the Opportunity in order to create() or update() line item schedules on that opportunity.
The OpportunityLineItemSchedule object is defined only for those organizations that have the products and schedules features enabled. If the organization does not have the products and schedules features, the OpportunityLineItemSchedule object does not appear in the describeGlobal() call, and you cannot use describeSObjects() or query() with the OpportunityLineItemSchedule object.
Deleting the last remaining schedule will set the corresponding HasQuantitySchedule or HasRevenueSchedule flags (or both) to false on the parent line item.