---
schema_version: "1"
id: 52acc2ff82ca7c7203b83abad0928534f2da55e01ec5a3fd6c8f320186d5a519
title: Generate the Rule Library for DRO Integration
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_generating_the_rule_library_for_dro_integration.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_generating_the_rule_library_for_dro_integration.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2c4338f8bece4d9fc5ac9d32bc2dc192fc7f1a3fab946b95d3ef319cdce86929
description: The Rule Library provides the execution framework for DRO. By linking fulfillment conditions to a specific Usage Type, you make sure that the system correctly evaluates both standard and custom Sales Transactions.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Generate the Rule Library for DRO Integration

The Rule Library provides the execution framework for DRO. By linking fulfillment conditions to a specific Usage Type, you make sure that the system correctly evaluates both standard and custom Sales Transactions.

### 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> Edition.</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="d376460e70">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d376460e70 ">A set of permissions required to generate a Rule Library:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d376460e70 ">RevenueLifecycleManagementAddOn</td>

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

To create these conditions, you first need an active Rule Library. This library should link to both the DRO Usage Type and a SalesTransaction (standard and custom) Context Definition. Include options to create a Rule Library.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)

Note When you enable DRO, the system automatically creates a Rule Library named DRORuleLibrary for you. This library is active and is ready to use. By default, it's set up to use the standard data definition compatible (SalesTransactionCD), but you can easily update this setting to use your own custom one instead.

The steps to create and activate Rule Library:

1. From the App Launcher, find and select **Rule Libraries**, and then click **View All** to see the existing libraries.
    
    ![CME Rule Library](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/comms_media_energy_managed/images/cmerulelibrary.png)
2. Click the DRORuleLibrary.
    
    ![CME DRO Rule Library](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/comms_media_energy_managed/images/cmedrorulelibrary.png)
3. Create and activate a Rule Library version for the CMESalesTransaction context definition.
    
    ![CME DRO Rule Library](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/comms_media_energy_managed/images/cmedrorulelibraryv1.png)