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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / set limit of request a...
Power Apps
Unanswered

set limit of request allow per month in Leave app

(0) ShareShare
ReportReport
Posted on by 6

Hi All,

 

I'm currently creating a leave app  and tried lot codes to set a limit of request can be submitted every month (Ex: we have 16 requests for the month of March, but the available slots is only 14). I wanted the user to received a notification error in app or email trigger from power automate that there is no available slots for the month. 

I have a column Number of Days (calculated between the start date and end date) and Column Month (text from the Start date submitted) , I tried in power automate but I don't know the options that I can use to count the number of days so it will trigger the control once the limit has been reached. Please help!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Armie0217 ,

     

    Could you please share more details? How do you determine the limit of requests for different months? Or it's always 14?

     

    Best regards,

  • NPPlatform Profile Picture
    606 Moderator on at

    Hi @Armie0217, I think you could solve this in the app without making use of Power Automate. When a user tries submit a leave-request for a month you can check how many records already exists in your leaves-table for that month. If this is equal to the amount that's allowed you show the user a notification (for example "The maximum amount of leave-requests for this month has already been reached. Your request can not be completed."), if the maximum has not been reached yet, you start the process for the leave-request.

  • Armie0217 Profile Picture
    6 on at

    Hi @v-jefferni - the limit is calculated based on the working days per month and number of employees as we need to make sure we have like 90% presence percentage every month. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard