web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Save report Automatically As PDF through Job Queue

(3) ShareShare
ReportReport
Posted on by 139
Hi all,
  In nav I was creating a one new report for Purchase Order Analysis, this report to analysis for how many orders are created particular period, & Modified, and we need to store the report as pdf format into the one location automatically as daily basis, here we run the report through the job queue, 
here I try some code but job queue is working fine, but Report not saved as PSF in mentioned Location, 
Kindly Guide / Help me to solve this issue 
 
this is my code , if need any changes kindly Correct it 
 
//this code Wrote in Code unit.
gFileName := 'C:\Po_Autosave'; // Store location 
FileNameSI := DELCHR(FORMAT(TODAY), '=', '|\?/<>,.@#$%^&*()!-=_+'); // Formatting Date For put as File name 
ReportPDF := FORMAT(gFileName)+FORMAT(FileNameSI)+'.PDF';
REPORT.SAVEASPDF(50064,ReportPDF);
 
Thanks 
Vijay R.
 
 
I have the same question (0)
  • Suggested answer
    KP - Solution Architect Technical Profile Picture
    658 on at
    Hi 
     
    Try using datetime in the file name instead of only date.
     
     
    Regards,
    KP
  • Gerardo Rentería García Profile Picture
    27,054 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    So you want your report run automatically, output as pdf and you want it emailed too? - Business Central Musings

    Best Regards
    Gerardo

  • Suggested answer
    YUN ZHU Profile Picture
    101,787 Super User 2026 Season 1 on at
    Is this the On-Pre version? If it is Cloud, it cannot be saved to a local path.
    Hope the following can give you some hints.
    Dynamics 365 Business Central: How to save reports directly to SharePoint via AL (Graph API) – Manual and Automatic
    Dynamics 365 Business Central: How to save reports directly to OneDrive via AL (Graph API) – Manual and Automatic
     
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,497 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,778 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,507

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans