Help with Call Flow

Status
Not open for further replies.

Greenhous-Jack

Forum User
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?

Screenshot 2024-07-03 112549.png
 
You can't use C# code directly in the expression. You need to use an Execute C# Code component for that, passing the variables you will use as parameters.
 
  • Like
Reactions: VoIPTools
Can anyone help with writing the Call Flow App? Not very versed in it.
 
We can help. But you may want to take a look at our 3CX On Call Manager. It has far, far more features than anything you are going to be able to create with just a CFD.
 
Status
Not open for further replies.

Members Online Now

No members online now.

Forum statistics

Threads
111,832
Messages
589,285
Members
164,662
Latest member
DejanMDS