---
schema_version: "1"
id: b26fb0232340e0dd520b111bf0d7237619350138082a5054bf8bba9874e1a09b
title: Create Credit Memo Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_om_actions_create_credit_memo.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_om_actions_create_credit_memo.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2eda92520ac1cdab6ffdc14217550d691e279cb09a36c55cf1eebda93112c30c
description: In Salesforce Order Management, create a credit memo to represent the refund for one or more change orders associated with an order summary.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Create Credit Memo Action

In Salesforce Order Management, create a credit memo to represent the refund for one or more change orders associated with an order summary.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></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;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">This feature requires the Salesforce Order Management add-on. To purchase, contact your Salesforce account executive.</td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. Select the **Order Management** category, and search for **Create Credit Memo**.

## Set Input Values

Use values from earlier in the flow to set the inputs.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.006802721088434%">
          <col style="width:82.99319727891157%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d292114e83">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d292114e85">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d292114e83 "><strong class="uicontrol">Credit Memo Input</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d292114e85 ">
              <p>This input is an Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_input_create_credit_memo.htm" target="_blank">ConnectApi.CreateCreditMemoInputRepresentation</a>.</p>
              <p style="margin-bottom:0;">The variable has one
                field, <strong class="uicontrol">changeOrderIds</strong>, which is a list of IDs of the change
                orders to create a credit memo for.</p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d292114e83 "><strong class="uicontrol">Order Summary Id</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d292114e85 ">Reference to the order summary associated with the change orders.</td>
          </tr>
        </tbody>
      </table>

## Store Output Values

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.513134851138354%">
          <col style="width:82.48686514886164%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d292114e127">Output Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d292114e130">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Output Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d292114e127 ">
              <strong class="uicontrol">Credit Memo Output</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d292114e130 ">
              <p>This value is an Apex-defined variable of class <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_output_create_credit_memo_output.htm" target="_blank">ConnectApi.CreateCreditMemoOutputRepresentation</a>.</p>
              <p style="margin-bottom:0;">The
                <strong class="uicontrol">creditMemoId</strong> field contains the ID of the created credit
                memo.
              </p>
            </td>

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

## Usage

To set up the Credit Memo Input, first use Assignment elements to add the change order IDs to a list of strings variable. Then use that variable in the action input.

#### See Also

- [Ensure Refunds Async Action](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_om_actions_ensure_refunds_async.htm&release=264.0.0&type=5 "In Salesforce Order Management, ensure refunds for a credit memo or excess funds by sending a request to a payment provider. This action inserts a background operation into an asynchronous job queue and returns the ID of that operation so you can track its status. Payment gateway responses appear in the payment gateway log and don’t affect the background operation status.")
- [Add and Edit Elements](https://help.salesforce.com/s/articleView?id=platform.flow_build_elements.htm&release=264.0.0&type=5 "Use elements to define actions that the flow can run. When they’re on the canvas, connect them to create the order in which they run.")