CHANGE WORKDATE

How best do i change the workdate such that every one logged in will use the same work date , THE WORKDATE SHOULD CHANGE AFTER IT CLOCKS A CERTIAN HOUR OF THE DAY

Answers

  • naveenjainnaveenjain Member Posts: 7
    IT seems you are looking this in the classic client, so you can write code in the codeunit 1, so when the user login, based on the code/formula you write in the codeunit 1, user will get that.
  • TimbuktuTimbuktu Member Posts: 2
    Thanks naveenjain ,however i want it to change without user inntervention such that even if they were logged in ,and it clocks the given time the workdate changes
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Use a single instance codeunit, started from Codeunit 1 when user logs in, and then use NTimer automation inside this codeunit. When the single instance codeunit starts setup the NTimer to fire an event at specific time of day, and in the code handing the NTimer event change the WORKDATE


    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Sign In or Register to comment.