GetRoomLists and GetRooms limitations

Use GetRoomLists and GetRooms when working with room list distribution groups in EWS. There is no limit on the number of room lists returned by GetRoomLists, but GetRooms returns no more than 100 rooms.

For the test, a room list distribution group was created with 110 members. It looks like this:

A room list distribution group with 110 members

Run the following code with C# and the EWS Managed API:

1
2
3
4
5
6
7
8
9
10
11
EmailAddressCollection myRoomLists = service.GetRoomLists();

// Display the room lists.
foreach (EmailAddress address in myRoomLists)
{
Debug.WriteLine ("Email Address: " + address.Address + " Mailbox Type: " + address.MailboxType);

System.Collections.ObjectModel.Collection<EmailAddress> myRoomAddresses = service.GetRooms(address);

Debug.WriteLine("Rooms in this room list : " + myRoomAddresses.Count);
}

The call does not throw an exception, but it retrieves only 100 rooms:

GetRooms output showing a room count of 100

This is not a throttling policy, and the 100-room limit cannot be changed. You may not often register 100 rooms, but it is something to keep in mind.

Advertisement