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
Nandhini S 3Nandhini S 3 

Send values from apex to flow

Hi All,

I have an apex class which gets related records. Is it possible to return the values from the class to a screen flow ?
VinayVinay (Salesforce Developers) 
Hi Nndhini,

Try using invocable methods to pass values from apex to flow.

https://salesforce.stackexchange.com/questions/350370/pass-values-back-to-flow
https://unhandledsunshine.com/2021/08/12/invocable-methods-how-to-send-data-between-flow-and-apex/

Thanks,
Nandhini S 3Nandhini S 3
Hi Vinay,

Thanks for sharing the links. 
My apex class returns a map<string(field from child object),string(field from parent object)>. I'm not able to pass map to flow.
Is there any way I can achieve this.