---
schema_version: "1"
id: 27fc9678199d6586e9359620e448b0c79abe48f940eaf83a573eb3d92c2c5e4e
title: CommerceEntitlementPolicy
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_commerceentitlementpolicy.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_commerceentitlementpolicy.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a230af797242cd0b7325a4d7cff58114eb47fd0928353528175c82f7429492bc
description: Represents an entitlement policy, which determines what products and prices a user can see. This object is available in API version 49.0 and later.
---
# CommerceEntitlementPolicy

Represents an entitlement policy, which determines what products and prices a user can see. This object is available in API version 49.0 and later.

## Supported Calls

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

## Special Access Rules

The CommerceEntitlementPolicy object is available only if the B2B Commerce license is enabled.

## Fields

| Field | Details |
| --- | --- |
| CanViewPrice | 
Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Determines whether a user can view the price of a product (true) or not (false). Default value is false.



 |
| CanViewProduct | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Determines whether a user can view the product (true) or not (false). Default value is false.



 |
| CurrencyIsoCode | 

Type

picklist

Properties

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

Description

The standard code for the currency.

Possible values are:

- GBP—British Pound
- USD—U.S. Dollar





 |
| Description | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The entitlement policy description.



 |
| IsActive | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Determines if the entitlement policy is active (true) or inactive (false). Default value is false.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this record. If this value is null, it can mean that the record was only referenced (LastReferencedDate) and not viewed.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the entitlement policy.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The unique ID for the entitlement policy owner.



 |

## Associated Objects

This object has the following associated objects. Except where noted, these objects are available in the same API version as CommerceEntitlementPolicy.

[CommerceEntitlementPolicyChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")

Change events are available for the object.

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

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

[CommerceEntitlementPolicyOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for this object.