You need to sign in to do that
Don't have an account?
Eric Smith 10
How can I pass a SObject Collection variable from Visual flow to Apex?
I am trying to pass the result of a Fast Lookup from Visual Flow to an invocable Apex class and I am unable to get the Flow designer let me select the SObject Collection variable. Any ideas on how to make this work?
global class collectionSize { @InvocableMethod public static List<Integer> getCollection(List<OpportunityLineItem> vwfCollection) { List<Integer> countList = new List<Integer>(); countList.add(vwfCollection.size()); return countList; } }
Based on my experience, it only allows to pass Sobject Variables and Not the collection to an invokable class. So I believe you would have pass the bulk values in a loop.
Hope this helps.
Cheers!!
Gaurav