Hi @Anonymous ,
Could you please tell me:
- Do you want to divide the day into 3 periods, each with a maximum of x tickets?
- Is the template you are using a 'help desk'?
If so, please set CreateTicketScreenCreateButton's OnSelect property to:
Set(NumberOfTickets,NumberOfTickets + 1);
If(
CountRows(
Filter(
TicketList,
If(
Value(Text(Now(),"HH"))<8,
Value(Text(Created,"HH"))<8,
Value(Text(Now(),"HH"))<16,
Value(Text(Created,"HH"))>=8 && Value(Text(Created,"HH"))<16,
Value(Text(Created,"HH"))>=16 && Value(Text(Created,"HH"))<24
)
)
)>100,
Notify("The number of ticks in this time period has exceeded 100"),
Patch(TicketList,Defaults(TicketList),{Id:NumberOfTickets,
Title:CreateTicketScreenTitleText.Text,
Priority: CreateTicketScreenPriorityDropDown.SelectedText.Value,
Author:MyProfile.Mail,
TaskStatus:"NOT STARTED",
PercentComplete: "0",
Created:Now(),
AssignedTO:"",
Description:CreateTicketScreenTaskDescription.Text,
Editor:MyProfile.Mail,
Modified:Now(),
Category:CreateTicketScreenCategoryDropDown.SelectedText.Value });
Reset(CreateTicketScreenTitleText);
Reset(CreateTicketScreenTaskDescription);
Reset(CreateTicketScreenCategoryDropDown);
Reset(CreateTicketScreenPriorityDropDown);
Navigate(ConfirmSubmitScreen,None)
)
Best Regards,
Bof