---
schema_version: "1"
id: 5e8741469f132bb80fffa8544165ad08fac9b8de6310a1782a2bf36c1f4c7f64
title: QuoteLineRelationship
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_quotelinerelationship.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_quotelinerelationship.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3c34a270c0b36909c7335c583b2587fbb44c4b54d40772ded1d3fcd9e6050b6a
description: "Describes the relationship between quote line items, such as items in a bundle. When you create a QuoteLineRelationship object, it’s immutable: it can’t be edited or removed. This object is available in API version 58.0 and later."
---
# QuoteLineRelationship

Describes the relationship between quote line items, such as items in a bundle. When you create a QuoteLineRelationship object, it’s immutable: it can’t be edited or removed. This object is available in API version 58.0 and later.

## Supported Calls

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

## Special Access Rules

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

## Fields

| Field | Details |
| --- | --- |
| AssociatedQuantScaleMethod | 
Type

picklist

Properties

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

Description

How to scale the quantity of the associated quote line, relative to the main quote line. If this field has a non-null value, you can't edit the associated quote line's quantity.

Possible values are:

- Constant— The associated quote’s line quantity remains the same in relation to the main quote line’s quantity. For example, the main quote line has a quantity of one and the associated quote line has a quantity of one. If you increase the quantity of the main quote line to two, the associated quote line’s quantity remains at one.
- Proportional— The associated order’s item quantity increases or decreases based on the main quote line’s quantity. For example, the main quote line has a quantity of one and the associated quote line has a quantity of two. If you increase the quantity of the main quote line to two, the associated quote line’s quantity increases to four.

The default value is Proportional.



 |
| AssociatedQuoteLineId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The unique identifier of the associated quote line item.

This field is a relationship field. In a bundle relationship, this quote line is the bundle component.

Relationship Name

AssociatedQuoteLine

Relationship Type

Lookup

Refers To

QuoteLineItem



 |
| AssociatedQuoteLinePricing | 

Type

picklist

Properties

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

Description

Indicates how the associated quote line item is priced relative to the main quote line item.

Possible values are:

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





 |
| AssociatedQuoteLineRole | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

Describes the position of the associated quote line item in the relationship.

Possible values are:

- BundleComponent— The associated quote line item is part of a bundle.
- SetComponent— The associated quote line item is part of a set.
- ClassificationComponent— The associated quote line item is a product classification component.





 |
| 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.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate), but not viewed it.



 |
| MainQuoteLineId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The unique identifier of the main quote line item.

This field is a relationship field. In a bundle relationship, this quote line is the bundle parent.

Relationship Name

MainQuoteLine

Relationship Type

Lookup

Refers To

QuoteLineItem



 |
| MainQuoteLineRole | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

Indicates the position of the main quote line item in the relationship.

Possible values are:

- Bundle—The main quote line item is the bundle parent.
- Set—The main quote line item is the set parent.





 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The name of the quote line relationship.



 |
| ProductRelatedComponentId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The ID of the product related component.

This field is a relationship field.

Relationship Name

ProductRelatedComponent

Refers To

ProductRelatedComponent



 |
| ProductRelationshipTypeId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The unique identifier of record that describes the relationship between the main and associated quote lines.

This field is a relationship field.

Relationship Name

ProductRelationshipType

Relationship Type

Lookup

Refers To

ProductRelationshipType



 |
| QuoteId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The unique identifier of the quote to which the main and associated quote lines belong.

This field is a relationship field.

Relationship Name

Quote

Relationship Type

Lookup

Refers To

Quote



 |
| RootQuoteLineId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The root quote line for the quote line relationship. In a bundle relationship, the root quote line is the root bundle.

This field is a relationship field.

Relationship Name

RootQuoteLine

Refers To

QuoteLineItem



 |

## Associated Objects

This object has the following associated objects.

[QuoteLineRelationshipFeed](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.

[QuoteLineRelationshipHistory](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.