function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
njo103njo103 

Visualflow : assigning collection variable from apex call

Hello,

I am developping a visualflow that needs to call an apex class that would return a list of string.  I need to display the list on my visualflow.  I am following the example given here : https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_designer_elements_apex.htm and using the @InvocableMethod annotation.

However, when assigning the return value to collection in the visualflow, we are encountering an error : "The data type of resource you entered does not match".

The collection is of type text.

Any help would be appreciated.

Thanks in advance.