Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
PricingRecipe
Parent Type
This type extends the Metadata 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 | Description |
|---|---|
| defaultPricingProcedure |
|
| defaultPricingProcedureDeveloperName |
|
| defaultPricingProcedureId |
|
| developerName |
|
| isActive |
|
| isInternal |
|
| masterLabel |
|
| pricingRecipeTableMapping |
|
PricingRecipeTableMapping
Represents the mapping of the lookup table with the chosen pricing recipe.
| Field Name | Description |
|---|---|
| isInternal |
|
| lookupTable |
|
| lookupTableDeveloperName |
|
| pricingComponentType |
|
| pricingProcedureOutputMapList |
|
| pricingRecipe |
|
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 | Description |
|---|---|
| fieldName |
|
| isPricingRecipeActive |
|
| outputFieldName |
|
| outputFieldNameString |
|
| outputType |
|
| pricingElementType |
|
Declarative Metadata Sample Definition
The following is an example of a PricingRecipe component.
1<PricingRecipe xmlns="http://soap.sforce.com/2006/04/metadata">
2 <defaultPricingProcedureId> </defaultPricingProcedureId>
3 <developerName>CMEDefaultRecipe</developerName>
4 <isActive>false</isActive>
5 <isInternal>false</isInternal>
6 <masterLabel>CMEDefaultRecipe</masterLabel>
7 <pricingRecipeTableMapping>
8 <isInternal>false</isInternal>
9 <lookupTableDeveloperName>Bundle_Based_Adjustment_Decision_Table</lookupTableDeveloperName>
10 <pricingComponentType>CUSTOMDISCOUNT</pricingComponentType>
11 <fileBasedDecisionTableName>Bundle Based Adjustment Entries</fileBasedDecisionTableName>
12 <pricingProcedureOutputMapList>
13 <fieldName>AdjustmentValue</fieldName>
14 <isPricingRecipeActive>false</isPricingRecipeActive>
15 <outputFieldName>0lPxx000000000f</outputFieldName>
16 <outputFieldNameString>false</outputFieldNameString>
17 <outputType>AdjustmentValue</outputType>
18 <pricingElementType>BundleDiscount</pricingElementType>
19 </pricingProcedureOutputMapList>
20 <pricingProcedureOutputMapList>
21 <fieldName>AdjustmentType</fieldName>
22 <isPricingRecipeActive>false</isPricingRecipeActive>
23 <outputFieldName>0lPxx000000000m</outputFieldName>
24 <outputFieldNameString>false</outputFieldNameString>
25 <outputType>AdjustmentType</outputType>
26 <pricingElementType>BundleDiscount</pricingElementType>
27 </pricingProcedureOutputMapList>
28 <pricingRecipe>CMEDefaultRecipe</pricingRecipe>
29 </pricingRecipeTableMapping>
30</PricingRecipe>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>PricingRecipe</name>
6 </types>
7 <version>68.0</version>
8</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.