Newer Version Available
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
- The action to call. The value must be one of the following actions:
- callCreateComplaintApi — Prepares data for and calls the ConnectApi.ComplaintMgmtRequestInputRepresentation 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().
- sortList — Sorts a list.
- validateTimeRange — Checks if the start time is before the end time.
- args
- Type: Map<String, 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.