Pass selected values to a microflow using action button

I have a data grid inside a data view, now I want to pass the selected value in the datagrid to an microflow using an action button. But it only passes the object of the dataview to the microflow parameter. How could I pass the selected objects of the data grid to that microflow ?
1 answers

If you put the action button inside the control bar of the datagrid you can pass the selected entity(or a list of it) by just adding it as a parameter to the microflow.