---
schema_version: "1"
id: c7bd21ff9dec7e4c922ebbea8be47ea086e69f087b955bfc94148e4d93d39afc
title: cgcloud__Order_Template__c
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_cgcloud__order_template__c.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_cgcloud__order_template__c.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 51eeee72dc101ad2ce734845f2fb7f4a7ed3d01ce74f376736c4451a724889a4
description: Template that controls the behavior of a sales document. This object is available in API version 54.0 and later.
---
# cgcloud\_\_Order\_Template\_\_c

Template that controls the behavior of a sales document. 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**: Create, Defaulted on create, Filter, Group, idLookup, Nillable, Sort, Update
- **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

### RecordTypeId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Represents the record type of the record.
    
    This is a relationship field.
- **Relationship Name**: RecordType
- **Relationship Type**: Lookup
- **Refers To**: RecordType

### cgcloud\_\_Active\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Attribute that's used to either enable or disable the current template.
- **Default value**: true

### cgcloud\_\_Add\_Former\_Items\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Template setting controls whether items, which belong to a former sales document of the same business partner and of the same sales document template, are to be added to the disposal list. The system considers only sales documents that have reached a status of status type as Ready within the number of days specified in SdoMeta.ConsiderMaxHistoryDays.
- **Default value**: false

### cgcloud\_\_Add\_Items\_Json\_\_c

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: JSON to customize the Add Items page.

### cgcloud\_\_Allow\_Competitor\_Products\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether foreign products can be used in the sales document.
- **Default value**: false

### cgcloud\_\_Allow\_Header\_Discount\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates if a user can provide a discount for the order. The app evaluates the discount percentage or amount from the valid pricing conditions for the order.
- **Default value**: false

### cgcloud\_\_Allowed\_Orderer\_Types\_\_c

- **Type**: multipicklist
- **Properties**: Create, Filter, Nillable, Update
- **Description**: Allowed Orderer Types.
- **Possible values**:
    - Direct
    - Indirect
    - Replenishment

### cgcloud\_\_Barcode\_Scan\_Behavior\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls the behavior of barcode scanning of products: Select an item, and then increase the product quantity.
- **Default value**: SelectIncrease
- **Possible values**:
    - AddBatchNumber—Add Batch Number
    - OnlySelect—Only Select
    - SelectIncrease—Select Increase
    - UserExit—User Exit

### cgcloud\_\_Can\_Purchase\_Number\_Update\_Allowed\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the driver is allowed to update the purchase number while reviewing the delivery document.
- **Default value**: false

### cgcloud\_\_Calculation\_Schema\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the calculation schema that determines the calculation schema that's used in truck load documents.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Calculation\_Schema\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_CP\_Calculation\_Schema\_\_c

### cgcloud\_\_Cancel\_Reason\_Required\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the user must provide a reason for order or delivery document cancellation.
- **Default value**: false

### cgcloud\_\_Cancel\_Reason\_\_c

- **Type**: multipicklist
- **Properties**: Create, Filter, Nillable, Update
- **Description**: Specifies the reason for the cancellation of the delivery document or order.
- **Possible values**:
    - CanceledByCall—Canceled By Call
    - CashierNotAvailable—Cashier Not Available
    - CustomerBlocked—Customer is credit blocked
    - DoubleDelivery—Double Delivery
    - Misentry
    - NotEnoughMoney—Not Enough Money
    - WrongDelivery—Wrong Delivery
    - WrongPricing—Wrong Pricing

### cgcloud\_\_Capture\_Release\_Time\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Capture Release Time.
- **Default value**: false

### cgcloud\_\_Check\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the delivery date is to be checked.
- **Default value**: true

### cgcloud\_\_Check\_Out\_Type\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Order is used for the inventory check-out.
- **Default value**: SKU Check-Out
- **Possible values**:
    - Counting Group Check-Out
    - Express Check-Out
    - Pallet Check-Out
    - SKU Check-Out

### cgcloud\_\_Compute\_Price\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls whether prices are computed for the items.
- **Possible values**:
    - 0—Save
    - 1—Add and Save
    - 2—No
    - 3—External
    - 4—Offline (Button)
    - 5—Offline (Edit Mode)

### cgcloud\_\_Consider\_Field\_Availability\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Template setting controls whether the field state is to be considered when adding a product to the disposal list.
- **Default value**: false

### cgcloud\_\_Consider\_History\_In\_Days\_\_c

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Controls the number of days that are to be used to determine a last item.

### cgcloud\_\_Consider\_Inventory\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Determines the products in the item list based on existing user inventories.
- **Default value**: false

### cgcloud\_\_Consider\_Lead\_Time\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the lead time is taken from the delivery recipient. Otherwise, the lead time of this template is taken. The maximum lead time is defined in both cases by the template.
- **Default value**: false

### cgcloud\_\_Consider\_Listing\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: All products of active listings are considered according to the specified listing finding template.
- **Possible values**:
    - 0—No
    - 1—Yes
    - 2—User Exit

### cgcloud\_\_Consider\_Modification\_Reason\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Specifies whether modification reasons can be entered for modified items.
- **Default value**: false

### cgcloud\_\_Consider\_OoS\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The system adds out-of-stock products to the disposal list and/or presets their quantity.
- **Possible values**:
    - Add
    - AddPreset—Add & Preset Quantity
    - No
    - Preset—Preset Quantity

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

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: All products whose state is active and executable are considered according to the specified promotion finding template.
- **Possible values**:
    - 0—No
    - 1—Yes
    - 2—User Exit

### cgcloud\_\_Consider\_Quantity\_Suggestion\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Presetting of the ordered quantity via either the calculated quantity suggestion or preordered quantity.
- **Possible values**:
    - LQtyStock—Last Quantities & Stock
    - Lqty—Last Quantities
    - No
    - Pqty—Preordered Quantity

### cgcloud\_\_Consider\_Saturday\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: If 1 (true): deliveries on Saturdays are allowed.
- **Default value**: false

### cgcloud\_\_Consider\_Selectable\_Promotion\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Enables selectable promotions on Mobility.
- **Default value**: false

### cgcloud\_\_Consider\_Stock\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Specifies whether the current stock is to be considered for quantity suggestion in the web display of the disposal list. Currently, it's additionally used to display the current stock in the disposal list of the Mobility device.
- **Default value**: false

### cgcloud\_\_Consider\_Sunday\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: If 1 (true): deliveries on Sundays are allowed.
- **Default value**: false

### cgcloud\_\_Creation\_Platform\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Indicates the platform on which this template can be used to create sales documents.
- **Default value**: Laptop
- **Possible values**:
    - Both
    - Laptop
    - Mobility

### cgcloud\_\_Customer\_Selling\_Assortment\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the customer selling assortment is used to preset the disposal list. - 0/No: The system doesn't consider any customer selling assortment. - 1/Yes: The system filters the disposal list subject to the customer selling assortment. All other template attributes for the disposal list control are to be considered also.
- **Default value**: false

### cgcloud\_\_Deletion\_Allowed\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Defines whether it’s allowed to delete any object of the template.
- **Default value**: false

### cgcloud\_\_Delivery\_Date\_Calculation\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls how the delivery date is determined.
- **Default value**: Built In
- **Possible values**:
    - Built In
    - No
    - Today
    - User Exit

### cgcloud\_\_Description\_Language\_1\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Stores the description in language 1.

### cgcloud\_\_Description\_Language\_2\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Stores the description in language 2.

### cgcloud\_\_Description\_Language\_3\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Stores the description in language 3.

### cgcloud\_\_Description\_Language\_4\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Stores the description in language 4.

### cgcloud\_\_Description\_\_c

- **Type**: string
- **Properties**: Filter, Nillable, Sort
- **Description**: Description based on the user-specifiied language.
    
    This is a calculated field.
- **Formula**:
    
    CASE($User.cgcloud\_\_Language\_Postfix\_\_c,
    "Language1", cgcloud\_\_Description\_Language\_1\_\_c,
          "Language2", cgcloud\_\_Description\_Language\_2\_\_c,
          "Language3", cgcloud\_\_Description\_Language\_3\_\_c,
          "Language4", cgcloud\_\_Description\_Language\_4\_\_c,
          cgcloud\_\_Description\_Language\_1\_\_c)

### cgcloud\_\_Disposal\_List\_Proposal\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls whether and how the disposal list is built for this sales document template.
- **Default value**: Proposal
- **Possible values**:
    - None
    - Proposal
    - Talon
    - UserExit—User Exit

### cgcloud\_\_Document\_Transaction\_Type\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies how to manage a sales document regarding payments.
- **Possible values**:
    - CashInvoice—Delivery Cash Invoice
    - CreditInvoice—Delivery Credit Invoice
    - CashOrder—Cash Order
    - CreditMemo—Credit Memo
    - CreditOrder—Credit Order
    - InvoiceCashInvoice—Cash Invoice
    - InvoiceCreditInvoice—Credit Invoice
    - NoPayment—No Payment
    - NoPaymentOrder—No Payment Order
    - VanSalesCashInvoice—Van Sales Cash Invoice
    - VanSalesNoPaymentInvoice—Van Sales No Payment Invoice
    - NonValuatedDeliveryNote—Non Valuated Delivery Note
    - ValuatedDeliveryNote—Valuated Delivery Note

### cgcloud\_\_Document\_Type\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies how to handle a sales document regarding payments.
- **Possible values**:
    - CashCheckIn—Cash Check In
    - CashCheckOut—Cash Check Out
    - Delivery
    - OrderEntry—Order Entry
    - ProductCheckIn—Product Check In
    - ProductCheckOut—Product Check Out
    - TruckAudit—Truck Audit

### cgcloud\_\_Flat\_Item\_List\_Grouping\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: When displaying the disposal list as a flat list on the Mobility device, the items are to be grouped in accordance with the product groups of the specified level.
- **Possible values**:
    - Brand
    - Category
    - Flavor
    - Package
    - Product
    - SubCategory

### cgcloud\_\_Free\_Items\_Json\_\_c

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: JSON to customize the Free Items page.

### cgcloud\_\_Generate\_Pricing\_Information\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Controls the storage of pricing information in the respective order item/order object. And these pricing details are shown during printing or print preview.
- **Default value**: No
- **Possible values**:
    - No
    - Yes
    - YesOV—Yes (Optimised Version)

### cgcloud\_\_Generate\_Pricing\_Log\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls whether the pricing engine writes or synchronizes pricing logs.
- **Possible values**:
    - No
    - Yes

### cgcloud\_\_Generate\_Rewards\_Log\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: This attribute can be used by users to switch on/off the generation of the Rewards log file when the order is saved.
- **Default value**: Yes
- **Possible values**:
    - No
    - Yes

### cgcloud\_\_Hide\_Wholesaler\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the attribute Broker/Wholesaler is hidden in the UI.
- **Default value**: false

### cgcloud\_\_Id\_Generation\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls the behavior of the document number generation.
- **Possible values**:
    - Creation—Number generation at creation time
    - Default—Default behavior (Web: On Save, Mobile: On Sync)
    - Release—Number generation at release time

### cgcloud\_Inventory\_Filter\_\_C

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Determines whether the inventory products are considered for creating and validating the disposal list.
- **Default value**: false

### cgcloud\_\_Inventory\_Reference\_1\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines the first inventory reference usage.
- **Possible values**:
    - ActualUser—Actual User
    - ActualVehicle—Actual Vehicle
    - DefaultUser—Default User
    - DefaultVehicle—Default Vehicle
    - Tour

### cgcloud\_\_Inventory\_Reference\_2\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines the second inventory reference usage.
- **Possible values**:
    - ActualUser—Actual User
    - ActualVehicle—Actual Vehicle
    - DefaultUser—Default User
    - DefaultVehicle—Default Vehicle
    - Tour

### cgcloud\_\_Inventory\_Reference\_3\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Defines the third inventory reference usage.
- **Possible values**:
    - ActualUser—Actual User
    - ActualVehicle—Actual Vehicle
    - DefaultUser—Default User
    - DefaultVehicle—Default Vehicle
    - Tour

### cgcloud\_\_Inventory\_Reference\_4\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Defines the fourth inventory reference usage.
- **Possible values**:
    - ActualUser—Actual User
    - ActualVehicle—Actual Vehicle
    - DefaultUser—Default User
    - DefaultVehicle—Default Vehicle
    - Tour

### cgcloud\_\_Inventory\_Reference\_5\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines the fifth inventory reference usage.
- **Possible values**:
    - ActualUser—Actual User
    - ActualVehicle—Actual Vehicle
    - DefaultUser—Default User
    - DefaultVehicle—Default Vehicle
    - Tour

### cgcloud\_\_Invoice\_Id\_Generation\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls the way in which an invoice number is generated.
- **Possible values**:
    - Creation—Number generation at creation time
    - Default—Default behavior (Web: On Save, Mobile: On Sync)
    - NoGen—No Number generation
    - Release—Number generation at release time

### cgcloud\_Invoice\_Number\_Definition\_\_C

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines the format of the system-generated invoice ID. This is a relationship field.
- **Relationship Name**: cgcloud\_\_System\_Number\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_System\_Number\_\_c

### cgcloud\_\_Is\_Partial\_Payment\_Allowed\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the driver is allowed to collect partial payment for the cash order or delivery document.
- **Default value**: false

### cgcloud\_\_Item\_Input\_Required\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: All items of the sales document must have been edited (entered quantity) before releasing the document.
- **Default value**: false

### cgcloud\_\_Item\_Presetting\_Policy\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies whether the system shows the presetting of item values in the truck load and cash documents.
- **Possible values**:
    - BlindMode—Blind Lines
    - NonBlindMode—Non Blind Lines
    - Prepopulated

### cgcloud\_\_List\_Option\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies the default list option in the sales document.
- **Possible values**:
    - Flat List
    - Hierarchy

### cgcloud\_\_Listing\_Finding\_Date\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls the date that's used for the product finding algorithms of customer authorization lists.
- **Default value**: ListingDate
- **Possible values**:
    - DeliveryDate—Delivery Date
    - InitiationDate—Initiation Date
    - ListingDate—Listing Date
    - OrderDate—Order Date

### cgcloud\_\_Listing\_Finding\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the authorization list finding template, which controls the behavior of the algorithm.
- **Default value**: None
- **Possible values**:
    - Hit—First Hit
    - None

### cgcloud\_\_Manual\_Adjustment\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the delivery date can be edited by the user.
- **Default value**: true

### cgcloud\_\_Max\_Lead\_Time\_\_c

- **Type**: double
- **Properties**: Create, Defaulted on create, Filter, Nillable, Sort, Update
- **Description**: Number of maximum days that are allowed to place an order before the planned delivery date.

### cgcloud\_\_Max\_Order\_Value\_\_c

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Maximum order value that's accepted for orders of this template.

### cgcloud\_\_Min\_Lead\_Time\_\_c

- **Type**: double
- **Properties**: Create, Defaulted on create, Filter, Nillable, Sort, Update
- **Description**: Number of minimum days needed to process the order and prepare the delivery.

### cgcloud\_\_Min\_Order\_Value\_\_c

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Minimum order value that's accepted for orders of this template. The system only considers the value if it's >=0.01.

### cgcloud\_\_Mobility\_Relevant\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls the validation of restrictions that are necessary for usage on mobility devices.
- **Default value**: false

### cgcloud\_\_Notify\_Outdated\_Calculation\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the system issues a warning message about an outdated complex pricing calculation when opening the order.
- **Default value**: false

### cgcloud\_\_Number\_Of\_Historic\_Quantities\_\_c

- **Type**: double
- **Properties**: Create, Defaulted on create, Filter, Nillable, Sort, Update
- **Description**: Number of historical orders that are to be considered for quantity suggestion.

### cgcloud\_\_Order\_Details\_Json\_\_c

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: JSON to customize the Order Details page.

### cgcloud\_\_Order\_Items\_Json\_\_c

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: JSON to customize the Order Items section.

### cgcloud\_\_Order\_Page\_Header\_Json\_\_c

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: JSON to customize the Order Page Header section.

### cgcloud\_\_Payment\_Modification\_Reason\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies whether modification reasons can be entered for the difference in payments.
- **Possible values**:
    - Mandatory
    - Notrequired—Not required
    - Optional

### cgcloud\_\_Price\_Type\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Determines the Price Type value for every product.
- **Possible values**:
    - NotRelevant—Not Relevant
    - consumer—Consumer
    - factory—Factory

### cgcloud\_\_Pricing\_Date\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines the date that's to be used for complex price calculation.
- **Possible values**:
    - DeliveryDate—Delivery Date
    - OrderDate—Order Date

### cgcloud\_\_Pricing\_Type\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines the pricing type of the order template.
- **Possible values**:
    - A—Standard
    - C—Free of Charge
    - F—Sample/Donate
    - Q—Return
    - T—Refusal
    - V—Contract

### cgcloud\_\_Product\_Check\_In\_Policy\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines whether a complete or partial product check-in is required at the end of a tour. The truck inventory check-out document controls the way check-in is required.
- **Possible values**:
    - Complete—Complete check-in is mandatory
    - Optional—Check-in is optional
    - Partial—Check-in is mandatory, partial check-in allowed

### cgcloud\_\_Product\_Selector\_Groups\_\_c

- **Type**: multipicklist
- **Properties**: Create, Filter, Nillable, Update
- **Description**: Used for mobility.
- **Possible values**:
    - All
    - Basket
    - Brand
    - New
    - Out of Stock
    - Promotion
    - Sub-Category

### cgcloud\_\_Promotion\_Filter\_Selection\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Determines the presetting of promotion filter for promotional orders. The system shows the order in the disposal list with either the first valid selectable promotion or without any selectable promotion.
- **Default value**: 0
- **Possible values**:
    - 0—No Promotion
    - 1—First Promotion

### cgcloud\_\_Promotion\_Finding\_Date\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls the date that's used for product finding algorithms of promotion tactics.
- **Default value**: ListingDate
- **Possible values**:
    - DeliveryDate—Delivery Date
    - InitiationDate—Initiation Date
    - ListingDate—Listing Date
    - OrderDate—Order Date

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

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the promotion finding template.
- **Possible values**:
    - Collection—Collection Algorithm
    - None

### cgcloud\_\_Quantity\_Rounding\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Quantity Rounding.
- **Default value**: Off
- **Possible values**:
    - Off
    - RoundingAlwaysOn—Rounding Always On
    - RoundingDefaultOff—Rounding Default Off
    - RoundingDefaultOn—Rounding Default On

### cgcloud\_\_Recalculation\_Required\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls whether forced recalculation is required in complex pricing if the calculation date diverges from the current date.
- **Possible values**:
    - AlwaysCalculate—Always Calculate
    - No
    - Yes
    - YesNotify—Yes (With Notification)

### cgcloud\_\_Release\_Platform\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Describes the platform that can be used to release the order that references this template.
- **Default value**: All
- **Possible values**:
    - All
    - Mobility

### cgcloud\_\_Report\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls the type of report that's used.

### cgcloud\_\_Sales\_Document\_Assortment\_Filter\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the sales document template assortment is to be considered when building and validating the disposal list.
- **Default value**: false

### cgcloud\_\_Sales\_Document\_Assortment\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the sales document template assortment is used to preset the disposal list. - 0/No: The system doesn't consider any sales document template assortment. - 1/Yes: The system presets the disposal list subject to the sales document template assortment. All other template attributes for the disposal list control have to be considered also.
- **Default value**: false

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

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Sales org to which the order template belongs.
- **Possible values**:
    - 0000
    - 0001
    - 0002
    - 0003

### cgcloud\_\_Selling\_Assortment\_Filter\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the customer selling assortment is to be considered when validating the disposal list. No: The system doesn't consider any customer selling assortment. Yes: The system filters the disposal list subject to the customer selling assortment. The validation verifies the assignment of each product to the according assortment.
- **Default value**: false

### cgcloud\_\_Signature\_Template\_\_c

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

### cgcloud\_\_Sort\_\_c

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Position of this instance in overviews or toggles.

### cgcloud\_\_Special\_Order\_Handling\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Used for complex pricing calculations.
- **Default value**: No
- **Possible values**:
    - ExclusiveSpecialOrder—Exclusive Special Order
    - InclusiveSpecialOrder—Inclusive Special Order
    - No

### cgcloud\_\_Special\_Order\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates the ability to use the template along with talon tactics.
- **Default value**: false

### cgcloud\_\_Sync\_Options\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Sync Options.
- **Possible values**:
    - Cancel
    - No
    - Release
    - ReleaseCancel—Release Cancel

### cgcloud\_\_System\_Number\_\_c

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

### cgcloud\_\_Transaction\_Receiver\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies for whom the inventory transactions are to be written. For example, either for the initiator or for the owner of the respective sales or inventory document.
- **Possible values**:
    - Initiator
    - Owner

### cgcloud\_\_Use\_Built\_In\_Pricing\_\_c

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Controls whether built-in pricing is used to or the whole pricing is done by a user exit.
- **Possible values**:
    - No
    - Yes

### cgcloud\_\_Use\_Customer\_Document\_TA\_Type\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Specifies whether the handling type of the customer is to be considered .
- **Default value**: false

### cgcloud\_\_User\_Roles\_\_c

- **Type**: multipicklist
- **Properties**: Create, Filter, Nillable, Update
- **Description**: User roles that are assigned to the order template.
    
    ![Note](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/images/icon_note.png)
    
    #### Note
    
    Ensure that the master picklist values exactly match the Technical Name of the permission sets. Enter the user value in Translation. For example, if CGCloud\_Master\_Data\_Admin is the master picklist value, then Master Data Admin is the translated value.
- **Possible values**:
    - CGCloud\_KAM
    - CGCloud\_Master\_Data\_Admin
    - CGCloud\_Retail\_Admin
    - CGCloud\_Sales\_User
    - CGCloud\_Security\_Admin
    - CGCloud\_Supervisor
    - CGCloud\_Tour\_User

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

- **Type**: date
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Date from which the entry is valid.

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

- **Type**: date
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Date until which the entry is valid.

### cgcloud\_\_Wholesaler\_Required\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether a wholesaler or broker reference is required for sales documents of this template.
- **Default value**: false

### cgcloud\_\_Workflow\_\_c

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

## Associated Objects

### Associated Objects

This object has these 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.

- **[cgcloud\_\_Order\_Template\_\_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\_\_Order\_Template\_\_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\_\_Order\_Template\_\_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\_\_Order\_Template\_\_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\_\_Order\_Template\_\_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.