how to limit number of slots for appointments per starting time in share point calendar

dina kutt 0 Reputation points
2023-03-21T06:44:22.7433333+00:00

we are using share point calender to make appointments. we need to limit the appointments according to availabe service providers (lets say we have 5 service providers- then we cannot have more thaan 5 appointments per 10.00, if 1 of them is for 2 hours, then we should have 4 possible appointments for 11.00 ). the client decides the length of the appointment.

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,481 Reputation points Microsoft External Staff
    2023-03-22T08:44:05.2433333+00:00

    Hi @dina kutt

    Unfortunately, we are unable to limit number of slots for appointments by OOTB.

    I will recommend you to create an Event Receiver on itemAdding to check the total number of the entries that created today before adding any new entry to prevent adding any new entries If the number of created entries is greater than the specified Entry Limit.

    To get starting, check the below links:

    How to: Create an Event Receiver

    How to: Create an Event Receiver for a Specific List Instance

    Steps To Create Item Event Receivers In SharePoint

    In addition, this article has a similar requirement as you. You could have a reference.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.