From 4044bb42d97bc826e7e217dafd26c8b0a4789960 Mon Sep 17 00:00:00 2001 From: datapharmer Date: Mon, 28 Mar 2016 10:09:41 -0400 Subject: [PATCH] remove brackets from picklist array input list first and last items show a bracket. This removes the [ at the beginning and the ] at the end. --- FlowProcessMultiSelectChoices/classes/ListHelper.cls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FlowProcessMultiSelectChoices/classes/ListHelper.cls b/FlowProcessMultiSelectChoices/classes/ListHelper.cls index 4f204ef..1d35409 100644 --- a/FlowProcessMultiSelectChoices/classes/ListHelper.cls +++ b/FlowProcessMultiSelectChoices/classes/ListHelper.cls @@ -53,6 +53,8 @@ global class ListHelper implements Process.Plugin{ global Process.PluginResult invoke(Process.PluginRequest request) { String inputList = (String) request.inputParameters.get('inputList'); + inputList = inputList.removeStart('['); + inputList = inputList.removeEnd(']'); Map result = new Map(); if (inputList==null || inputList=='') { result.put('nextItem', null); @@ -181,4 +183,4 @@ global class ListHelper implements Process.Plugin{ } -} \ No newline at end of file +}