Batch report downloading in Dynamics 365 AL

Hi everyone,

Actually I want to implement batch report downloading functionality in Dynamics 365.But most of the functionality is not allowed to use for extension development. ( If you have any other idea please tell me).

Currently I am using SETTABLEVIEW property of report and then report.runmodal without using request page. It automatically donwloads singke reports on client computer. But I want the same for all the selected invoice.

Whenever I use SETFILTER in sales header and after that use report.settableview(salesHeader) it only gives me the first invoice report.

Suggest me any better idea or why its not working for all the records that are being filtered.