---
schema_version: "1"
id: 9333cba735566eb29d598ed4086cb1a010db8c0c4dbd4dd9d434f85f96883da6
title: OrderItemSpecRule
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/advanced-orders-for-telesales/references/standard-objects/order-item-spec-rule.md
canonical_url: https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/advanced-orders-for-telesales-objects/order-item-spec-rule.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 88ede21b8d2aa53ca2442de9b8babc164351d02b2ebae5455f184cb24d16b737
products:
  - Advanced Orders for Telesales Developer Guide
  - Industries Developer Documentation
---
# OrderItemSpecRule

Represents a pricing/scope rule attached to an OrderItemSpec, defining the scope of order products the rule applies to and the pricing impact (additive, neutral, or subtractive) it has when matched. This object is available in API version 68.0 and later.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `undelete()`, `update()`, `upsert()`

## Special Access Rules

Available only in orgs with the Manufacturing Cloud or Automotive Cloud Advanced Orders feature enabled.

## Fields

### CurrencyIsoCode

**Type:** picklist

**Properties:** Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

**Description:** The ISO code for the currency of this record. Possible values are: AED (UAE Dirham), USD (U.S. Dollar), and every other active currency ISO code configured for the org. The default value is USD.

### LastReferencedDate

**Type:** dateTime

**Properties:** Filter, Nillable, Sort

**Description:** The timestamp when the current user last accessed this record, a related record, or a list view.

### LastViewedDate

**Type:** dateTime

**Properties:** Filter, Nillable, Sort

**Description:** The timestamp when the current user last viewed this record.

### Name

**Type:** string

**Properties:** Autonumber, Defaulted on create, Filter, idLookup, Sort

**Description:** The auto-generated name of the order item specification rule.

### OrderItemSpecId

**Type:** reference

**Properties:** Create, Filter, Group, Sort

**Description:** The parent OrderItemSpec this rule belongs to. This field is a relationship field. It's the master in a master-detail relationship.

**Relationship Name:** OrderItemSpec

**Refers To:** OrderItemSpec

### OrderProductRuleScope

**Type:** picklist

**Properties:** Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

**Description:** The scope of order products this rule applies to. Possible values are AccordingToPriceImpact, AllItems, DeliveryExclFreeItems, DeliveryInclFreeItems, and ReturnsOnly.

### PriceImpact

**Type:** picklist

**Properties:** Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

**Description:** The pricing impact this rule has on matched order products. Possible values are Add (Additive), Neutral, and Subtract (Subtractive).

## 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.

- [OrderItemSpecRuleChangeEvent](https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/associated-objects/change-event.md): Change events are available for the object.
- [OrderItemSpecRuleFeed](https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/associated-objects/feed.md): Feed tracking is available for the object.
- [OrderItemSpecRuleHistory](https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/associated-objects/history.md): History is available for tracked fields of the object.
- [OrderItemSpecRuleOwnerSharingRule](https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/associated-objects/owner-sharing-rule.md): Sharing rules are available for the object.
- [OrderItemSpecRuleShare](https://developer.salesforce.com/docs/industries/advanced-orders-for-telesales/references/associated-objects/share.md): Sharing is available for the object.
