---
schema_version: "1"
id: 28a5a5f5bbe26c2b2fa63fa005af5186e47dbdbe58fad88c914422654375239a
title: cgcloud__CP_Pricing_Condition__c
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_cgcloud__cp_pricing_condition__c.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_cgcloud__cp_pricing_condition__c.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e6c811e1ffb6fcfaa6c198bc8c836fc7c09849b3cb7272b545880559676f787f
description: This object holds the details of the pricing condition object that the Penny Perfect Pricing functionality uses. This object is available in API version 54.0 and later.
---
# cgcloud\_\_CP\_Pricing\_Condition\_\_c

This object holds the details of the pricing condition object that the Penny Perfect Pricing functionality uses. This object is available in API version 54.0 and later.

## Supported Calls

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

## Fields

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: Most recent date on which a user referenced this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: Most recent date on which a user viewed this record.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Unique identification of the record.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the record owner.
    
    This is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**: Group, User

### cgcloud\_\_Account\_Set\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the customer set object.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Account\_Set\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_Account\_Set\_\_c

### cgcloud\_\_Content\_Hash\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The Content Hash to identify the changes made to the Content field.

### cgcloud\_\_Content\_\_c

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: XML structure with aggregated condition information.

### cgcloud\_\_Deleted\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Specifies whether a pricing condition has been deleted by the complex pricing batch.
    
    This field is available in API version 55.0 and later.
- **Default value**: false

### cgcloud\_\_Distribution\_Category\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Advanced pricing condition distribution category.
- **Possible values**:
    - Customer
    - Product
    - To All
    - User

### cgcloud\_\_Key\_Type\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the key type object.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Key\_Type\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_CP\_Key\_Type\_\_c

### cgcloud\_\_Merged\_Key\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Merged key of all key attributes that the key type defines.

### cgcloud\_\_Pricing\_Condition\_Template\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the pricing condition template.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Pricing\_Condition\_Template\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_CP\_Pricing\_Condition\_Template\_\_c

### cgcloud\_\_Product\_Assortment\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the product assortment object.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Product\_Assortment\_\_r
- **Relationship Type**: Lookup
- **Refers To**: Assortment

### cgcloud\_\_Promotion\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the promotion object.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Promotion\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_Promotion\_\_c

### cgcloud\_\_Replication\_Key\_Id\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: ID or value of the record that the staging replication key defines.

### cgcloud\_\_Sales\_Org\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Describes the sales org to which the pricing condition belongs.
- **Possible values**:
    - 0000
    - 0001
    - 0002
    - 0003

### cgcloud\_\_Unique\_Key\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Nillable, Sort, Update
- **Description**: Key that's used for the upsert process.

### cgcloud\_\_Valid\_From\_\_c

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Start period of all conditions that are merged into this condition (earliest one).

### cgcloud\_\_Valid\_Thru\_\_c

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: End period of all conditions that are merged into this condition (oldest one).

## Associated Objects

### Associated Objects

This object has these associated objects. If the API version isn’t specified, they are available in the same API versions as this object. Otherwise, they are available in the specified API version and later.

- **[cgcloud\_\_CP\_Pricing\_Condition\_\_cChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/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.
- **[cgcloud\_\_CP\_Pricing\_Condition\_\_cFeed](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/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.
- **[cgcloud\_\_CP\_Pricing\_Condition\_\_cHistory](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/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 the tracked fields of the object.
- **[cgcloud\_\_CP\_Pricing\_Condition\_\_cOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/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 the object.
- **[cgcloud\_\_CP\_Pricing\_Condition\_\_cShare](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")**: Sharing is available for the object.