---
schema_version: "1"
id: 7282b48f3d90dad70df674851c91be570836268702f23135fa050ea034d3adda
title: call(action, args)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/financial_services_cloud_object_reference/apex_fscserviceprocesses_FeeReversalHelperFunctions_call.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/apex_fscserviceprocesses_FeeReversalHelperFunctions_call.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 41e465524dd59429a5c3839b47c444eab544404cd469828e6032498506b437fb
description: This method calls one of the available FeeReversalHelperFunctions actions and passes arguments to that action.
---
# call(action, args)

This method calls one of the available FeeReversalHelperFunctions actions and passes arguments to that action.

## Signature

public Object call(String action, Map<String, Object\> args)

## Parameters

### action

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)

The action to call. The value must be one of the following:

- getFeeReversalAttributes — Fetches the list of Service Process attributes for the Fee Reversal request.
- callCreateCaseApi — Creates a new Case and a related Service Process record with the transaction data.

### args

Type: Map<[String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm), Object>

The first three keys must be input, output, and options. The required content for each depends on the action:

- getFeeReversalAttributes
    - String caseId — Id of the Case created using the Fee Reversal OmniScript.
- callCreateCaseApi
    - Map<String,Object>

## Return Value

Type: Map<String, Object>

The return values of the corresponding action.

## Usage

To use this class in an Integration Procedure, specify the class in the Remote Class property, the action in the Remote Method property, and the arguments in the Additional Input property.

## Examples

Input and output JSON examples for some of the actions are as follows.

### getFeeReversalAttributes

Input format:

{"caseId": "500RM000003rQu1YAE"}

Output format:

{
    "caseRequestAttr": {
      "FinancialAccountId": "a0URM0000004OCM2A2",
      "Transactions": \[
        {
          "frt\_reversal\_transaction\_description": "Reverse Cheque book charge",
          "frt\_reversal\_amount\_currency": "USD",
          "frt\_reversal\_percentage": 100,
          "frt\_transaction\_id": "12",
          "frt\_reversal\_error\_reason": null,
          "frt\_override\_percentage": 80,
          "frt\_reversal\_transaction\_amount": 40,
          "groupCorrelationNumber": 1,
          "frt\_transaction\_code": "54",
          "frt\_override\_amount\_currency": "USD",
          "frt\_transaction\_posted\_date": "2022-11-11T12:53:14.000Z",
          "frt\_fee\_type": "Cheque book charge",
          "override\_percentage\_formatted": "80.0%",
          "frt\_override\_amount": 40,
          "frt\_transaction\_amount\_currency": "USD",
          "frt\_transaction\_description": "Fee charge for Cheque book",
          "frt\_reversal\_transaction\_posted\_date": "2022-11-15T20:20:20.000Z",
          "reversal\_percentage\_formatted": "100.0%",
          "frt\_transaction\_amount": 50,
          "frt\_reversal\_amount": 50,
          "frt\_reversal\_transaction\_id": "1001116623",
          "frt\_reversal\_transaction\_amount\_currency": null
        }
      \]
    }
  }

### callCreateCaseApi

Input format:

{
  "attributes": {
    "data": {
      "financial\_account\_id\_1": {
        "value": "accountId"
      },
      "source\_system\_id\_1": {
        "value": "100"
      },
      "reversal\_reason\_1": {
        "value": null
      },
      "fee\_reversal\_transactions\_1": {
        "value": \[
          {
            "frt\_transaction\_id\_1": "12",
            "frt\_transaction\_posted\_date\_1": "2022-11-11T12:53:14.924Z",
            "frt\_transaction\_amount\_1": 50,
            "frt\_transaction\_amount\_currency\_1": "USD",
            "frt\_fee\_type\_1": "Check book charge",
            "frt\_transaction\_code\_1": "54",
            "frt\_reversal\_amount\_currency\_1": null,
            "frt\_reversal\_amount\_1": null,
            "frt\_reversal\_percentage\_1": null,
            "frt\_override\_amount\_currency\_1": null,
            "frt\_override\_amount\_1": null,
            "frt\_override\_percentage\_1": null,
            "frtr\_transaction\_id\_1": null,
            "frtr\_transaction\_posted\_date\_1": null,
            "frtr\_transaction\_description\_1": null,
            "frtr\_transaction\_amount\_1": null,
            "frtr\_transaction\_amount\_currency\_1": null,
            "frtr\_error\_reason\_1": null
          }
        \]
      },
      "reversal\_summary\_1": {
        "value": {
          "reversal\_transaction\_status\_1": null
        }
      }
    }
  },
  "svcCatalogItemDefApiName": "Fee\_Reversal\_Test\_2",
  "caseInfo": {
    "data": {
      "Subject": {
        "value": "Check book charge reversal"
      },
      "Origin": {
        "value": "Phone"
      }
    }
  }
}

Output format:

{
   "svcCatalogRequestId": "946xx000000009hEAA",
   "caseId": "500xx000000cd69AAA",
   "caseNumber": "00001032"
}