How to pass a list of object from a microflow to Datagrid?

when I click a button, it calls a microflow, that returns a list of objects. then it should open a popup page and display this list in the Datagrid widget. how can I pass the list from this microflow to Datagrid?   If I set data source of the datagrid to this microflow, it will call the microflow when the page is opened, while I need this microflow to be called only when I click the button on another page.
1 answers

Hi Maxim, an effective trick is to define a non-persistable helper entity with a 1-to-many association to your list entity. You can then assign the list of objects to this helper entity and pass it as a page parameter to your popup page.