---
schema_version: "1"
id: ab8d76e383f0ffac739ac866403e53b436e66b8d8db2ed086f5cc236c2a6390c
title: PricingRecipe
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_pricingrecipe.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_pricingrecipe.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 016ec3b50f9b22da29595ac067ade50a98a57b7b41dc3657166990934b3abb31
description: Represents the data models or sets of objects of a particular cloud that the pricing data store consumes during design time and run time.
---
# PricingRecipe

Represents the data models or sets of objects of a particular cloud that the pricing data store consumes during design time and run time.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/metadata.htm "HTML (New Window)") metadata type and inherits its fullName field.

## File Suffix and Directory Location

PricingRecipe components have the suffix .pricingRecipe and are stored in the pricingRecipe folder.

## Version

PricingRecipe components are available in API version 60.0 and later.

## Special Access Rules

This metadata type is available with Salesforce Pricing.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| defaultPricingProcedure | [ExpressionSetDefinition](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/meta_expressionsetdefinition.htm "HTML (New Window)") | Expression set definition that's associated with this pricing recipe setting. |
| defaultPricingProcedureDeveloperName | string | For internal use only. |
| defaultPricingProcedureId | string | ID of the pricing procedure of the pricing recipe. |
| developerName | string | Required. API name of the pricing recipe. |
| isActive | boolean | Indicates whether the pricing recipe is active (true) or not (false). The default value is false. |
| isInternal | boolean | Indicates whether the price recipe record is created internally by the Salesforce platform (true) or not (false). The default value is false. |
| masterLabel | string | Required. Name for pricing recipe that's defined when the pricing recipe is created. |
| pricingRecipeTableMapping | [PricingRecipeTableMapping\[\]](#PricingRecipeTableMapping) | Mapping of the pricing components of a lookup table with the chosen pricing recipe. |

## PricingRecipeTableMapping

Represents the mapping of the lookup table with the chosen pricing recipe.

| Field Name | Field Type | Description |
| --- | --- | --- |
| isInternal | boolean | Indicates whether the price recipe field mapping record is created internally by the platform (true) or not (false). The default value is false. |
| lookupTable | [DecisionTable](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/meta_decisiontable.htm "HTML (New Window)") or [DecisionMatrixDefinition](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/meta_decisionmatrixdefinition.htm "HTML (New Window)") | Lookup table that's associated with either a decision matrix or decision table. |
| lookupTableDeveloperName | string | For internal use only. |
| pricingComponentType | string | Pricing component field data that the decision table is built on. Valid values are AttributeDiscount; BundleDiscount; DerivedPricing; ListPrice; PriceAdjustmentMatrix; PromotionsDiscount; VolumeDiscount; VolumeTierDiscount; DiscountDistributionService. This value is available in API version 60.0 and later; or MinimumPrice. Available in API version 62.0 and later. |
| pricingProcedureOutputMapList | [PricingProcedureOutputMap\[\]](#PricingProcedureOutputMap) | List of the mappings of the outputs of the pricing procedures to the associated lookup tables. Available in API version 60.0 and later. |
| pricingRecipe | string | Required. Pricing data store that's associated with this pricing recipe field mapping. |

## PricingProcedureOutputMap

Represents the mapping of the outputs of the pricing procedures to the associated lookup tables. Each record specifies the output mapping of the associated lookup table based on the pricing component type specified in the PricingRecipeTableMapping object.

| Field Name | Field Type | Description |
| --- | --- | --- |
| fieldName | string | For internal use only. |
| isPricingRecipeActive | boolean | Indicates whether the associated pricing recipe is active (true) or not (false). The default value is false. |
| outputFieldName | string | Field name that contains the output type that's generated from the pricing element. |
| outputFieldNameString | string | Derived field that references a specific column in a decision table or decision matrix. |
| outputType | string | Output type that's generated from a pricing element. Valid values are AdjustmentType, AdjustmentValue, CustomOutput, HashOutput, or UnitPrice. |
| pricingElementType | PricingElementType (enumeration of type string) | Type of pricing element, which is a derived field from PricingRecipeTableMapping.PricingComponentType. Valid values are AssetDiscovery, AttributeDiscount, BundleDiscount, DerivedPricing, DiscountDistributionService, ListPrice, MinimumPrice, PriceAdjustmentMatrix, PriceRevision, PromotionsDiscount, RuleFetch, VolumeDiscount, or VolumeTierDiscount. |

## Declarative Metadata Sample Definition

The following is an example of a PricingRecipe component.

<PricingRecipe xmlns="http://soap.sforce.com/2006/04/metadata">
    <defaultPricingProcedureId\> </defaultPricingProcedureId\>
    <developerName\>CMEDefaultRecipe</developerName\>
    <isActive\>false</isActive\>
    <isInternal\>false</isInternal\>
    <masterLabel\>CMEDefaultRecipe</masterLabel\>
    <pricingRecipeTableMapping\>
        <isInternal\>false</isInternal\>
        <lookupTableDeveloperName\>Bundle\_Based\_Adjustment\_Decision\_Table</lookupTableDeveloperName\>
        <pricingComponentType\>CUSTOMDISCOUNT</pricingComponentType\>
        <fileBasedDecisionTableName\>Bundle Based Adjustment Entries</fileBasedDecisionTableName\>
        <pricingProcedureOutputMapList\>
            <fieldName\>AdjustmentValue</fieldName\>
            <isPricingRecipeActive\>false</isPricingRecipeActive\>
            <outputFieldName\>0lPxx000000000f</outputFieldName\>
            <outputFieldNameString\>false</outputFieldNameString\>
            <outputType\>AdjustmentValue</outputType\>
	     <pricingElementType\>BundleDiscount</pricingElementType\>
        </pricingProcedureOutputMapList\>
        <pricingProcedureOutputMapList\>
            <fieldName\>AdjustmentType</fieldName\>
            <isPricingRecipeActive\>false</isPricingRecipeActive\>
            <outputFieldName\>0lPxx000000000m</outputFieldName\>
            <outputFieldNameString\>false</outputFieldNameString\>
            <outputType\>AdjustmentType</outputType\>
	     <pricingElementType\>BundleDiscount</pricingElementType\>
        </pricingProcedureOutputMapList\>
        <pricingRecipe\>CMEDefaultRecipe</pricingRecipe\>
    </pricingRecipeTableMapping\>
</PricingRecipe\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>\*</members\>
        <name\>PricingRecipe</name\>
    </types\>
    <version\>68.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm "HTML (New Window)").