How to remove 1440 minute meeting duration limit?

Lenny Puente 21 Reputation points
2021-10-18T09:20:21.947+00:00

Hi all

I'm using microsoft graph api to create an event in a room of ours (POST https://graph.microsoft.com/v1.0/me/events). When creating an event with duration less than 24 hours everything works fine but when it lasts more then a day the meeting gets declined by the room with this message:

141355-image.png

Is there a way to remove this 1 day barrier? Sometimes the room needs to be booked for multiple days.

Thanks.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,347 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 95,181 Reputation points MVP
    2021-10-18T11:09:18.883+00:00

    Set the maximum duration to 0, or whichever value you want:

    Set-CalendarProcessing roomname -MaximumDurationInMinutes 0  
    

    More details here: https://learn.microsoft.com/en-us/powershell/module/exchange/set-calendarprocessing?view=exchange-ps

    1 person found this answer helpful.
    0 comments No comments

  2. Joyce Shen - MSFT 16,641 Reputation points
    2021-10-19T02:05:01.217+00:00

    Hi @Lenny Puente

    Yes, like michev suggest above, the MaximumDurationInMinutes parameter specifies the maximum duration in minutes for meeting requests. A valid value is an integer from 0 through INT32 (2147483647). The default value is 1440 (24 hours).

    You could use the command above to set for one specific mailbox, or setting for all room mailboxes in your organization

    Get-Mailbox | where {$_.recipientTypeDetails -eq "roomMailbox"} | Set-CalendarProcessing -MaximumDurationInMinutes 14400  
    

    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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.

    1 person found this answer helpful.
    0 comments No comments