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
Sanjana RajasekarSanjana Rajasekar 

pass Collection record Values from LWC to Flow

Hi,
How we pass record collection variable from LWC to Flow Collection Variable?
I have array of collection defined in LWC.
[{"Qty":"1","Id":"01u0P00000kjd8vQAA","Level":4},{"Qty":"4","Id":"01u520000090pFoAAI","Level":4}]
 
Need to pass this collection to Flow variable.
I added this in xml
        <property name="editableproductstoflow
" type="{T[]}" label="Passing Records to Flow" role="outputOnly" />
Js File
VinayVinay (Salesforce Developers) 
Hi Sanjana,

Try below.
<property name="editableproductstoflow" type="String" label="Passing Records to Flow" role="outputOnly"/>
Thanks,
Naveen KNNaveen KN
Hi Sanjana, we have an article on passing parameters from lwc to the flow, please have a look and let me know if that helps 
https://www.codekiat.com/2022/12/pass-value-from-lwc-to-screen-flow.html