---
schema_version: "1"
id: b77abeab83516db7bf60425710bae38db84d391f6a890dd8f3e02eb279392e80
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_fsccomplaintmanagement_ComplaintMgmtHelper_call.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/apex_fsccomplaintmanagement_ComplaintMgmtHelper_call.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 80a6821d8818e66ea00f1859745f0d46ecba465469805021cbb3ab99579e11da
description: This method calls one of the available ComplaintMgmtHelper actions and passes arguments to that action.
---
# call(action, args)

This method calls one of the available ComplaintMgmtHelper 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 actions:

- callCreateComplaintApi — Prepares data for and calls the [ConnectApi.ComplaintMgmtRequestInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.264.0.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/apex_connectapi_input_complaint_mgmt.htm) method and its sub-representations.
- convertUploadedDocuments — Converts uploaded document data to list format.
- getBasePath — Returns the URL path prefix of the current site or an empty string if none. See [getPathPrefix()](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_classes_sites.htm#apex_System_Site_getPathPrefix).
- sortList — Sorts a list.
- validateTimeRange — Checks if the start time is before the end time.

args

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

The arguments passed to the corresponding action. All actions require input, output, and options arguments, but these can be empty if the action doesn’t use them. Values listed here are for the input argument.

- callCreateComplaintApi — Accepts data in these keys: AccountId, arguments, AssessmentId, AuthorizationProof, CaseReason, Description, Documents, Email, FinAccountsMasterList, FinancialAccount, FromTime, ParticipantId, PreferredCommunicationMode, Priority, ProductType, ShouldInclInRegulatoryRpt, SourceType, Status, Subject, SubType, TillTime, Type.
- convertUploadedDocuments — Accepts uploaded document data in either List<Object> or Map<String, Object> format.
- getBasePath — No input is needed.
- sortList — Accepts a list in List<Object> or String format under an unorderedList key.
- validateTimeRange — Accepts start and end times in FromTime and TillTime keys.

## Return Value

Type: Map<String, Object>

The return values of the corresponding action, returned in the output argument.

- callCreateComplaintApi — Returns data in a result key with these keys under it: caseId, caseNumber, and publicComplaintId.
- convertUploadedDocuments — Returns uploaded document data in List<Object> format under a Documents key and the size of the list in a DocumentsListSize key.
- getBasePath — Returns the URL path prefix of the current site in a BasePath key.
- sortList — Returns a sorted list under a sortedList key.
- validateTimeRange — Returns a result key with a value of Valid or Invalid.

## Usage

To use this method 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.