web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Service Desk Example- ...
Power Apps
Answered

Service Desk Example- Set a ticket limit

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi! 

I'm using the Service Desk Template to adjust it to Ticket system for a laboratory. I want set a maximum limit to the amount of tickets or requests enter every 8 hours (= every shift) since due to resource limitation we only have the capacity to work in "x" amount of tickets per shift. 

Is this posible? I'm pretty new in Powerapps, so any help would mean a lot. 

 

Thanks!

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It worked! Thanks! Sorry couldn't reply earlier ...anyway thanks!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard