---
schema_version: "1"
id: 3b1d12829c4920a6ad512a609890f4ade0da368791f1b63f669476d9637dd7cd
title: OrderChangeLog
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_orderchangelog.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_orderchangelog.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8cd3f53c5f1a389f753e0a63d1fdc15b8d152ee40256763be83a2f83276b4ad2
description: Represents a log record of all change requests made to an order post activation. A log record is always one-to-one to change an order request. This object is available in API version 48.0 and later.
---
# OrderChangeLog

Represents a log record of all change requests made to an order post activation. A log record is always one-to-one to change an order request. This object is available in API version 48.0 and later.

## Supported Calls

describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

Commerce Cloud standard objects in the inventory data model require at least one of the following licenses: B2B Commerce, D2C Commerce.

## Fields

| Field | Details |
| --- | --- |
| ChangeLineId | 
Type

reference

Properties

Filter, Group, Sort

Description

The ID of the main change line created as a result of the change request. For example, if you change an order item, the ChangeLineId would be the change OrderItem ID, or if you change a shipping address, the ChangeLineId would be the change OrderDeliveryGroup ID.

This field is a polymorphic relationship field.

Relationship Name

ChangeLine

Relationship Type

Lookup

Refers To

OrderAdjustmentGroup, OrderDeliveryGroup, OrderItem, OrderItemAdjustmentLineItem, OrderItemTaxLineItem



 |
| ChangeLineType | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The method used to implement the change.

Possible values are:

- Delta
- New





 |
| ChangeOrderId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the change order.

This field is a relationship field.

Relationship Name

ChangeOrder

Relationship Type

Lookup

Refers To

Order



 |
| ChangeRequest | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

The unique ID of the request of which this change is a part.



 |
| ChangeSummary | 

Type

textarea

Properties

Description

A human-readable summary of the change details.

Here’s an example of a change summary:

Reduced quantity by -3.
Change adjustment by $15.
Added an adjustment of $20.
Changed tax by $-0.11, effective 1/1/2020.
Added a tax of $1.5, effective 1/1/2020.







 |
| ChangeType | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The type of the change request.

Possible values are:

- NewAdjustmentGroups—Add a new header level adjustment.
- NewLineAdjustments—Add a new line level adjustment.
- NewOrderItems—Add a new order item.
- QuantityChange—Add or remove quantity from an original order item.





 |
| CurrencyIsoCode | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

The ISO code for any currency allowed by the organization.

Possible value is:

- USD—U.S. Dollar

The default value is USD.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The name for the order change log.



 |
| RelatedLineId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the main line that is changed as a result of this change.

This field is a polymorphic relationship field.

Relationship Name

RelatedLine

Relationship Type

Lookup

Refers To

OrderAdjustmentGroup, OrderDeliveryGroup, OrderItem, OrderItemAdjustmentLineItem, OrderItemTaxLineItem



 |
| RelatedOrderId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the order that is changed.

This field is a relationship field.

Relationship Name

RelatedOrder

Relationship Type

Master-detail

Refers To

Order (the master object)



 |
| Status | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The order status of the change order.

Possible values are:

- Activated
- Draft





 |

## Usage

Order change log entries are automatically created each time an order is modified.

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

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

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