Newer Version Available
call(action, args)
This method calls one of the available AddressUpdateHelperFunctions
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:
- getAddressUpdateAttrs — Fetches the list of Service Process attributes for the Address Update request.
- convertArrayToKeyValuePairs — Converts the formats of Financial Account numbers.
- ConvertToList — Converts document type data to list format.
- convertAndMergeAccounts — Converts Financial Account data to list format.
- convertUploadedDocuments — Converts uploaded files metadata json for OS.
- ifUploadContainsMultipleFiles — Indicates if a single file input element in OS contains multiple uploads.
- convertAddresses — Converts the account level addresses to consumable format for the OmniScript.
- callCreateCaseApi — Creates a new Case and a related Service Process record with the address data.
- args
- Type: Map<String, Object>
- The first three keys must be input, output, and options. The required content for each depends
on the action:
-
getAddressUpdateAttrs
- String svcCatalogRequestId — Id of the request created using the Address Update OmniScript.
-
convertArrayToKeyValuePairs
- List<Object> financialAccountsObj — List of financial account objects for transformation.
-
ConvertToList
- Object args — String of comma-separated document types.
-
convertAndMergeAccounts
- List<Object> args — list of financial accounts.
-
convertUploadedDocuments
- List<Object> args — list of uploaded documents from the OmniScript data.
-
ifUploadContainsMultipleFiles
- List<Object> args — list of uploaded documents from the OmniScript data.
-
convertAddresses
- Map<String,Object> args — Account level addresses.
-
callCreateCaseApi
- Map<String,Object>
-
getAddressUpdateAttrs
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.
- convertArrayToKeyValuePairs
-
Input format:
Output format:
- convertAndMergeAccounts
-
Input format:
Output format:
- convertAddresses
-
Input format:
Output format:
- convertUploadedDocuments
-
Input format:
Output format:
- ifUploadContainsMultipleFiles
-
Input format:
Output format: None
- callCreateCaseApi
-
The input map contains these key-value pairs:
FinancialAccounts input format:
customerLevelAddresses input format:
documentInfo input format:
Output format: None