---
schema_version: "1"
id: 7207923403b1e70482499effe27e3d2bfcca80cf4efe3219cf5c1a71cf2a05fd
title: Create a Batch Job to Process Transaction Journals
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/create_a_batch_job_to_process_transaction_journals.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.create_a_batch_job_to_process_transaction_journals.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e927149330b0e4136f2a9f577b0bac417f9143e637cc99f0bab3bbc179f13e0f
description: After setting up the flow to credit points to loyalty program members, create a batch job to process the flow. This batch job only processes transaction journal records that are in pending status.
products:
  - Loyalty Management
release: "264"
---
# Create a Batch Job to Process Transaction Journals

After setting up the flow to credit points to loyalty program members, create a batch job to process the flow. This batch job only processes transaction journal records that are in pending status.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in&nbsp;<strong>Enterprise</strong>,&nbsp;<strong>Performance</strong>, <strong>Developer</strong>, and&nbsp;<strong>Unlimited</strong>&nbsp;Editions that have Loyalty Management enabled.</td></tr></tbody></table>

1. From Setup, in the Quick Find box, enter Batch, and then select **Batch Management**.
2. Click **New**.
3. Provide the details listed in this table:
    
     
    | Field | Description |
    | --- | --- |
    | Name and API Name | Process Transaction Journals |
    | Process Type | Flow |
    | Group | Loyalty |
    | Execution Process | Credit\_Points\_to\_Members |
    | Batch Size | The size of this individual batch, for example, 200. |
    | Retry Count | The retry count for this individual batch, for example, 2. |
    | Retry Interval | The number of retry intervals for this individual batch, for example, 1,000. |
4. Click **Next**.
5. Provide the details listed in this table:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d46953e204">Field</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d46953e207">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d46953e204 ">Flow Input Variable</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d46953e207 ">RecordID</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d46953e204 ">Object</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d46953e207 ">Transaction Journal</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d46953e204 ">Conditions</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d46953e207 ">
                  <ul>
                    <li>Select Records When: All conditions are met (AND)</li>

                    <li>Field: Status</li>

                    <li>Operator: Equals</li>

                    <li>Type: Value</li>

                    <li>Value: Pending</li>

                  </ul>
                </td>

              </tr>
            </tbody>
          </table>
6. Save your changes.
7. Activate the batch job.

Create another flow to schedule this batch job to run.