- Joined
- May 29, 2020
- Messages
- 3
- Reaction score
- 0
I'm trying to create a Call Flow for an On Call Rota that alternates between 4 People Week by Week.
When adding a Conditional Component when I enter the condition it gives me an error.
The condition I'm adding is as below:
callflow$.CurrentWeek % 4 == 0
It's supposed to use the variable set by the this c# script:
DateTime now = DateTime.Now;
int weekNumber = CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(now, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
callflow$.CurrentWeek = weekNumber;
Also I'm not sure what I set in the Method Name on the Execute C# Code dialog box either.
Is the Call Flow also in the right order?

When adding a Conditional Component when I enter the condition it gives me an error.
The condition I'm adding is as below:
callflow$.CurrentWeek % 4 == 0
It's supposed to use the variable set by the this c# script:
DateTime now = DateTime.Now;
int weekNumber = CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(now, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
callflow$.CurrentWeek = weekNumber;
Also I'm not sure what I set in the Method Name on the Execute C# Code dialog box either.
Is the Call Flow also in the right order?
