---
schema_version: "1"
id: 8c65106a812032641ed84ba7b64e79f0872aafd73be8f1b79fb6c4d245975d1e
title: Create a Rule Library for Promotions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_create_a_rule_library_for_promotions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_create_a_rule_library_for_promotions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 35e55949e18f1a7c72eff95190aac3f8e14a053c98a3dfd77def570437fabda7
description: A rule library maps context definition tags to the fields used to define promotions and promotion eligibility criteria. Create a rule library for pricing designers to use when they create promotions.
products:
  - Communications
release: "264"
---
# Create a Rule Library for Promotions

A rule library maps context definition tags to the fields used to define promotions and promotion eligibility criteria. Create a rule library for pricing designers to use when they create promotions.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Communications Cloud Advanced</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:left;vertical-align:top;" id="d17375e70">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d17375e70 ">To create a rule library:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d17375e70 ">Context Service Admin permission set</td>

          </tr>
        </tbody>
      </table>

Revenue Cloud for Communications uses Global Promotion Management capabilities when your users design and apply promotions. Before you create a rule library, turn on the Global Promotion Management settings required for promotions.

- [Turn on Context Service](https://help.salesforce.com/s/articleView?id=ind.context_service_turn_on_context_service.htm&language=en_US).
- [Turn on Global Promotions Management](https://help.salesforce.com/s/articleView?id=mktg.global_promotions_management_setup_enable.htm&language=en_US).
- [Turn on Promotion Evaluation and Execution](https://help.salesforce.com/s/articleView?id=mktg.global_promotions_management_setup_eval_enable.htm&language=en_US).
- To use promotions for bundled products, [turn on Product Catalog Management in Global Promotions Management Settings](https://help.salesforce.com/s/articleView?id=mktg.global_promotions_management_setup_pcm_enable.htm&language=en_US).

After you turn on the required Global Promotions Management settings, create a rule library.

1. From the App Launcher, find and select **Rule Libraries**.
2. Click **New**.
3. Enter a name and an API name.
4. For the Context Definition Name of the first default version, enter the API name of your extended ConsumerSalesContext context definition.
5. For Usage Type, select **Promotions with Revenue Management**.
6. Save your changes.
7. In the Rule Library Versions list, click the name of your rule library.
8. For each required mapping, complete these steps.
    1. In the Custom Tag Mapping section, click **New**.
    2. Select a mapping name, and then select its context tag.
    3. Save your changes.
        
        For information, see [Rule Library Mappings](https://help.salesforce.com/s/articleView?id=ind.rule_library_mappings_promotions.htm&language=en_US).
9. Activate the rule library.
    
    After your rule library is ready, share its name with the pricing designers who create promotions.

#### See Also

- [Set Up Promotions in Revenue Cloud for Communications](https://help.salesforce.com/s/articleView?id=ind.comms_set_up_promotions_in_revenue_cloud_for_communications.htm&language=en_US)