Newer Version Available

This content describes an older version of this product. View Latest

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 on Lightning Experience license is enabled.

Fields

Field Details
CanViewPrice
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
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
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, this record might only have been 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. Unless noted, they are available in the same API version as this object.
CommerceEntitlementPolicyOwnerFeed
Feed tracking is available for the object.
CommerceEntitlementPolicyHistory
History is available for tracked fields of the object.
CommerceEntitlementPolicyOwnerSharingRule
Sharing rules are available for this object.