---
schema_version: "1"
id: 46e7b47462b9830369e53508afa1ac7c4e656260a3608730ebca26ef34e92cec
title: OrderItemRelationship
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_orderitemrelationship.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_orderitemrelationship.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c547c483a30d6d1250ce8f89fcdb8fd5697b4375918a6b6bc6048ec3adc88345
description: Describes a relationship between order products. This object is available in API version 58.0 and later.
---
# OrderItemRelationship

Describes a relationship between order products. This object is available in API version 58.0 and later.

## Supported Calls

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

## Special Access Rules

This object is available when Subscription Management or Revenue Cloud is enabled.

## Fields

| Field | Details |
| --- | --- |
| AssociatedOrderItemId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The unique identifier of the associated order product.

This field is a relationship field. In a bundle relationship, this order product is the bundle component.

Relationship Name

AssociatedOrderItem

Relationship Type

Lookup

Refers To

OrderItem



 |
| AssociatedOrderItemInventory | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort

Description

A static enum that describes the associated order item inventory in the OrderItemSummaryRelationship.

Possible values are:

- IncludedInMainInventory—The child product’s inventory is included in the main inventory.
- NotIncludedInMainInventory—The child product’s inventory isn’t included in the main inventory.

Relationship Name

AssociatedOrderItemInventory



 |
| AssociatedOrderItemPricing | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Indicates how the associated order product is priced relative to the main order product. The value is informative; the system doesn’t check whether the associated order product is included in the bundle price.

Possible values are:

- IncludedInBundlePrice—The associated order product’s cost is $0 because it’s included in the bundle’s price.
- NotIncludedInBundlePrice—The associated order product has a cost because it’s not included in the bundle’s price.





 |
| AssociatedOrderItemRole | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Describes the position of the associated order product in the relationship.

Possible values are:

- BundleComponent—The associated order product is part of a bundle.
- SetComponent—The associated order product is part of a set.





 |
| AssociatedQuantScaleMethod | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

How the quantity of the associated order product scales, relative to the main order product. The value is informative; the system doesn’t check whether the scaled quantities are correct.

Possible values are:

- Constant— The associated order’s product quantity remains the same in relation to the main order product’s quantity. For example, the main order product has a quantity of one and the associated order product has a quantity of one.
- Proportional— The associated order’s product quantity increases or decreases based on the main order product’s quantity. For example, the main order product has a quantity of one and the associated order product has a quantity of two. In other words, there are two associated order products for every one main order product.

The default value is Proportional.



 |
| IsPriceInclusive | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether child products are included in the root bundle price. If set to true, the price of each child product is zero.

The default value is false.



 |
| MainOrderItemId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The main order product’s unique identifier.

This field is a relationship field. In a bundle relationship, this order product is the bundle parent.

Relationship Name

MainOrderItem

Relationship Type

Lookup

Refers To

OrderItem



 |
| MainOrderItemRole | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Indicates the role of the main order product in the relationship.

Possible values are:

- Bundle— The main order product is the bundle parent.
- Set— The main order product is the set parent.

Subscription Management doesn’t support the Set value.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The name of the order product relationship.



 |
| OrderId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The unique identifier of the related order.

This field is a relationship field.

Relationship Name

Order

Relationship Type

Lookup

Refers To

Order



 |
| ProductRelationshipTypeId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The unique identifier of the record that describes the relationship between the main and associated order products.

This field is a relationship field.

Relationship Name

ProductRelationshipType

Relationship Type

Lookup

Refers To

ProductRelationshipType



 |
| RootOrderItemId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The root order item for the order item relationship. In a bundle relationship, the root order item is the root bundle.

This field is a relationship field.

Relationship Name

RootOrderItem

Refers To

OrderItem



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[OrderItemRelationshipFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[OrderItemRelationshipHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.