You need to sign in to do that
Don't have an account?
Priya 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?
Is there any alternative way to pass more than one parameters through visual flow to invocable method?
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");
}
}
Do you have any update?
Thanks
Athi
Hello,
Check this question:
https://developer.salesforce.com/forums/?id=9060G0000005nusQAA
You can Pass multiple parameters in invocable methods by creating an inner class with variables mentioned with @InvocableVariable.