You can use all Order Management service flows out of the box, and you can also customize a flow and expand its functionality. This customization ensures consistency across service fees and saves time while processing an order by setting a default fee.
Required Editions
| View supported editions. |
If you don’t have an editable version of the flow yet, copy a flow template.
You can set default fees in these flows: cancel, discount, return, and RMA.
-
Click
at the top of the
page, and then select Setup.
- In the Quick Find box, enter flows, and select Flows.
- Select the flow that you’re customizing.
- In the flow, open the Manager tab.
-
Configure the Allow Fees variable.
- Depending on your flow, find the allowReturnFees or allowCancelFees variable.
- For Default Value, enter {!$GlobalConstant.True}.
-
Set a value for one or more of these variables.
You don’t have to include all the values in this customization. If you leave the default fee value empty, it defaults to 0 and no default fee will apply.
- Find and select selectedFeeType, and enter Amount or Percent as the type of fee. The default is Amount.
- Find and select selectedFeeValue, and enter a default fee value. The default value is 0.
- Find and select selectedReasonForFee, and enter a reason code. If you don’t provide one, the reason defaults to no text.
- Find and select selectedProduct2Id, and enter a product2 to associate with the fee. If you don’t provide a product2, Commerce creates one for the fee.
- Click Save.
- If you’re ready to activate the flow, click Activate.