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 / Sharepoint lists counting
Power Apps
Unanswered

Sharepoint lists counting

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I'm trying to create a list in sharepoint for my employees holidays, due our bussiness have many areas, we have to set few spots to let them take their vacations, for example: from the period 14jan21 to 30jan21 only 5 spots. My question is: How can I set a limit on responses to this period avoiding that other employees can choose it after the limit have been reached?

 

thank u in advance

Categories:
I have the same question (0)
  • LRVinNC Profile Picture
    2,297 on at

    I can think of a couple ways, and I'm sure there are more.

     

    1.  Create a separate "counter list" which has a entry with the start and end date range and a counter column which starts with the max allowed during that period.  As a vacation is submitted, patch this list to reduce the counter by 1.  When submitting  new vacation list, check to be the counter is greater than zero before accepting the vacation request.

    2.  In the vacation request list, pre-populate the list with a record for each valid vacation period.  Any records with only a date (no person associated), are still available.  Once all records have a person associated, there are none available.

     

    If it were me, I'd probably use approach 1.

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard