---
schema_version: "1"
id: e3f779756ad10d21a71b47579868d9756e5a31308aeaf456c894795395c13204
title: OrderAction
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_orderaction.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_orderaction.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 76b92b94ad427b8e6f30545db0e7da6fdbe6e9a4c8228c0153a72329b07844c8
description: Indicates the type of order, such as a new sale or a cancellation. This object is available in API version 55.0 and later.
---
# OrderAction

Indicates the type of order, such as a new sale or a cancellation. This object is available in API version 55.0 and later.

## Supported Calls

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

## Special Access Rules

This object is available if Subscription Management is enabled in your org.

## Fields

| Field | Details |
| --- | --- |
| Name | 
Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The name given to the order action.



 |
| OffsetOrderItemId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the previous order item that is being modified by the business action. For example, the order that is being canceled.

This is a relationship field.

Relationship Name

OffsetOrderItem

Relationship Type

Lookup

Refers To

OrderItem



 |
| OrderId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The order containing the order item that implements the business action.

This is a relationship field.

Relationship Name

Order

Relationship Type

Lookup

Refers To

Order



 |
| SourceAssetId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The asset that is changed as a result of the business action. For example, the asset that is being canceled.

This is a relationship field.

Relationship Name

SourceAsset

Relationship Type

Lookup

Refers To

Asset



 |
| Subtype | 

Type

picklist

Properties

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

Description

The subtype of the action on the order line item.

Valid values are:

- FieldAmendment
- Rollback
- StartDateAdjustment
- TransferFrom
- TransferTo

This field is available with Revenue Cloud in API version 64.0 and later.



 |
| Type | 

Type

picklist

Properties

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

Description

The business action that created the order product.

Valid values are:

- Add
- Amend
- Cancel
- No Change
- Renew
- Transfer—Available with Revenue Cloud in API version 65.0 and later.





 |