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 Automate / Choice Column with max...
Power Automate
Unanswered

Choice Column with max number for each choices

(0) ShareShare
ReportReport
Posted on by 72

Hello,

 

Please help. I have created a LeaveRequest with the following columns

Title, LeaveType (choice column Vacation-Sick-Others), HalfDay (number), StartDate (date), EndDate (date), TotalDays (calculated column), Approver (person column), Admin (person column).

 

How set a max number for each of the LeaveType choices? So an employee can't request more than whats established.

Vacation - 22 working days

Sick - 18 days

Other - 5 days

 

And how to add a remaning balance calculation for each of the Leavetypes choices.

 

zmm14_0-1633031509116.png

Thank You.

 

 

Categories:
  • eric-cheng Profile Picture
    5,171 on at

    Hi @zmm14 

     

    There probably isnt a way to do this in Power Automate as the flow is called after the item has been added.  You could send an email back to the creator as ask them to amend it and ave a status of unapproved.

     

    In SharePoint, there is column validation but again, it doesnt allow you to reference another so wont work.

     

    There used to be the ability to create event receivers to execute code when an item was being added and block the save.  This was back in on prem days so not sure if this is still available.

     

    Lastly, you coukd edit thr view in PowerApps and try implementing the logic from there?  The form will look different though.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • zmm14 Profile Picture
    72 on at

    Thank you for taking the time to reply, really appreciate it.

    Is there any “less” complicated way I can keep records of the vacation balances on share point once the approver has approve an leave?

    If it’s possible can you please 🙏  show me a bit how to get it done?

    Thank You!

     

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard