Generating single document with multiple records at once

Hello All, We are stuck in a place where we have to generate one document(pdf) with variable number of records. Scenario: User will select some records from the datagrid and will click a button "generate report". Based on the selection, a single document should be generated which will have all the data related to the selection. Number of selection is not fixed. We tried to generate different pdf documents for each selection and try to merge it, we were unsuccessful. Your help is highly appreciated.
1 answers

Create a temporary entity that you associate to the selected list. Then display the entity in a microflow with a template grid displaying the associated objects within it.