- Joined
- Aug 8, 2023
- Messages
- 7
- Reaction score
- 0
Hi everyone,
I have a central phone with 2 BLF buttons programmed. Day/Night which are of course IN/OUT *641/*642.
I also know that *64 will force our system into default office hours.
I want to keep the buttons so early birds or late workers can still manually work the system.
But every workday at 08:00 I want the *64 to be called automatically. I looked into CFD but I'm not really sure how to make it work.
I've set a schedule to make a call at 8am from my own device to "*64". Doesn't work.
I've also been trying with c# code like : ((int)DateTime.Now.DayOfWeek) > 0 && ((int)DateTime.Now.DayOfWeek) < 6 && DateTime.Now.Hour == 8;
But doesn't work.
error:
Error: Property 'Condition' has an invalid expression at component 'conditionalComponentBranch1' - Expression '(DateTime.Now.Hour >= 8 && DateTime.Now.Hour < 12) || (DateTime.Now.Minute < 30 && DateTime.Now.Hour == 12)'. (file Main.flow)
Have any of you tried this before? or found an alternative method?
Help would be much appreciated, thank you in advance!
I have a central phone with 2 BLF buttons programmed. Day/Night which are of course IN/OUT *641/*642.
I also know that *64 will force our system into default office hours.
I want to keep the buttons so early birds or late workers can still manually work the system.
But every workday at 08:00 I want the *64 to be called automatically. I looked into CFD but I'm not really sure how to make it work.
I've set a schedule to make a call at 8am from my own device to "*64". Doesn't work.
I've also been trying with c# code like : ((int)DateTime.Now.DayOfWeek) > 0 && ((int)DateTime.Now.DayOfWeek) < 6 && DateTime.Now.Hour == 8;
But doesn't work.
error:
Error: Property 'Condition' has an invalid expression at component 'conditionalComponentBranch1' - Expression '(DateTime.Now.Hour >= 8 && DateTime.Now.Hour < 12) || (DateTime.Now.Minute < 30 && DateTime.Now.Hour == 12)'. (file Main.flow)
Have any of you tried this before? or found an alternative method?
Help would be much appreciated, thank you in advance!