Hi, I need to run the timer from 1st Jan 2023 to march 23rd. So i have put the below logics. Can you please let me the is this the correct one.
You can make this more dynamic by using a Site property or another entity that stores the date from and date to, so that you can change it if needed,
@Win Signo You mean i need to put site property here
And then in service centre i have to change date directly and run Right?
Yes, that way, the code can be change without a need to publish.
Hi Radha,
I agree with what @Win Signo said, we should always avoid hard-coded values in our code.
For the timer best practices, you can check this masterclass:
https://www.outsystems.com/training/lesson/1133/master-class-on-best-practices-and-timers
You will get some tips and knowledge on how to implement the timers logic correctly.
Regards,
PZ