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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Command line to save reports

(0) ShareShare
ReportReport
Posted on by

I am looking for an option to run reports overnight within batch file and save it to a folder; so users can look over next day. Even, I would like to archive these save report over month end.

With following command I can run the report but don't know to save in pdf or excel format: We are on Nav 2013R2

DynamicsNAV:////runreport?report=

Thanks for helping me.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Check this post

    saurav-nav.blogspot.com/.../save-navision-rtc-reports-into-pdf-word.html

    Navision already have the function to save the report as PDF, if you want to execute outside NAV and then publish a codeunit with the function as webservice and consume it to execute the code.

  • Community Member Profile Picture
    on at

    Hi Suresh, Thanks for the quick response. Can you provide an example/ command to save  DynamicsNAV:////runreport?report= format.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Do you want to run the above command from command line and want to save the report as PDF ?

  • Suggested answer
    Rajasekhar@MS Profile Picture
    5,569 on at

    Hi

    NAV 2015 offers an easy way to run and schedule reports Scheduling Reports, you don't need to do any customizations needs configuration on NAV, refer the below on how to configure.

    https://totovic.com/2014/09/17/report-scheduling-in-nav-2015/

    http://clientsfirst-tx.com/schedule-reports-microsoft-dynamics-nav-2015/

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    You can use job queue for schedeuling the report

    I think you are thinking of using windows schedular to run the report isnt it?

  • Community Member Profile Picture
    on at

    Amol, Thanks for guidelines.  I am thinking to write a batch file/script with command line parameters. In batch file, I would like to have multiple reports, which can be saved over network drive. This batch will run over night using Windows scheduler. So users can see these reports next day.

  • Community Member Profile Picture
    on at

    We are on NAV 2013 R2 and looking to create schedule reports.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    You can create one single codeunit and and schedule that in Job Queue to do the same instead of command line. I don't think there is a way to save the report to PDF using the command line.  In my first reply I provided a link how to do that, you need to create that function and schedule the codeunit in job queue.

  • Suggested answer
    Maneesha Profile Picture
    5,891 on at

    MukeshDubey ,

    I don't think every report can be scheduled (we don't know what is your report name is)

    But if you have enough permission to access DB , You can do it easily with using SQL Server  

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans