How would I create an array of the values from the flow
and pass them into the APEX @InvocableMethod
?
My method is taking in a list of Strings:
@InvocableMethod
public static List<String> AutoStartFlowToWebservice(List<String> values) {...}
And my flow has 4 values to be passed but they need to be combined into one list in order to pass them to the Apex class. Right now they are all separated. Creating a collection variable doesn't seem right to me because there is no where to add the values to it. Is there another step that I need to do within the flow to add the values to the collection variable?