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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Schedule create reminder and issue reminder job?

(0) ShareShare
ReportReport
Posted on by 80

Hi guys i want to schedule the job to create reminders for customers with outstanding balances and issue the reminders daily. I also need to set the document date to the current date.

I have the same question (0)
  • Suggested answer
    ChazKimRP Profile Picture
    380 on at

    Hi Usman,

    You can do this by going to the Job Queue, and create a new reoccurring entry for the reports. Create Reminder report is 188, issue reminder is 190.

    You can also reference this link on using the Scheduler:

    docs.microsoft.com/.../admin-job-queues-schedule-tasks

    If this answers your question, please verify the answer.

    Thanks!

    -Chaz

  • Usman Naseer Profile Picture
    80 on at

    Hi Chaz, thanks for your answer. I have done what you have mentioned now there is one more requirement, I also need to set the document date to the current date to create reminders.

  • ChazKimRP Profile Picture
    380 on at

    Hi Usman,

    Unfortunately for that, you would have to do some customization to the report in order to have it run daily by current day. Otherwise it is going to leave the date as whatever date you put in the request page at time of set up of the queue.

  • Usman Naseer Profile Picture
    80 on at

    Can you share any link or point me into the direction where i can get an idea how to do these customization?

  • Suggested answer
    ChazKimRP Profile Picture
    380 on at

    Hi Usman,

    Here is a post that I originally came across to answer the question.

    forum.mibuso.com/.../schedule-a-report-to-run-everyday-with-that-days-date

    If this answers your question, please verify the answer.

    Thanks!

  • Suggested answer
    Usman Naseer Profile Picture
    80 on at

    I ended up writing this short code unit and simply schedule in job queue. And it works.

    codeunit 50112 "Create&Issue Reminders"

    {

       trigger OnRun()

       begin

           CreateReminder();

           IssueReminder();

       end;

       procedure CreateReminder()

       var

           createReminder : Report "Create Reminders";

       begin

           createReminder.InitializeRequest(Today(), Today(), true, false, false);

           createReminder.Run();

       end;

       procedure IssueReminder()

       var

           issueReminder : Report "Issue Reminders";

       begin

           issueReminder.Run();

       end;

    }

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans