+ Start a Discussion
Priya Sharma 37Priya Sharma 37 

Send multiple parameters to invocable method

Hi All,
Is there any alternative way to pass more than one parameters through visual flow to invocable method?
Manj_SFDCManj_SFDC
Hi Priya ,

you can override your actual method with another method which accpets one parameter of List of primitives then use split and invoke your actual method. 

public with sharing class InvokeMultipleParams {

    public static String concateString(String  str1,String str2){
        return str1+str2;
    }

    @InvocableMethod(label='mulParams' description='mulParams')
    public static void innerMethodInvocable(List<String> values){
        concateString("John", "Smith");
    }    
}
AthiSachiAthiSachi
hi priya,
Do you have any update?

Thanks
Athi