Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Download Mulltiple Pdfs form Report

Posted on by 14
Hello Everyone,
 
I have the next question. In BC cloud version I tried to download for every record a single pdf but the system only download the last record founded, I was debbuging and the solution past trhoug every record but only the last one is downloaded. there is an image of the code.
 
First I get the individuals records (this code is inside a loop).
 
 
Then in the function I call the report to be printed (one for each document)
 
 
Ther is no error but at the end of the routine only downloads the last record.
 
Why only download the latest document?
Categories:
  • CU20051605-0 Profile Picture
    CU20051605-0 14 on at
    Download Mulltiple Pdfs form Report
    Thanks for the help, 
     
    I did what Saurav.Dhyani mention, I zip de report for every record and works perfectly.
     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 63,857 Super User on at
    Download Mulltiple Pdfs form Report
    More details:
    Dynamics 365 Business Central: FileManagement.BLOBExport only save last file? -> Adding multiple files into a zip file
     
     
    Thanks.
    ZHU
  • Verified answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 14,577 User Group Leader on at
    Download Mulltiple Pdfs form Report
    Hi,
     
    This is a default behavior.
     
    If you want multiple reports, then you need to add them to zip file. 
     
    This is the only way you can download multiple reports PDF.
     
    Regards,
    Saurav Dhyani

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans