Skip to content

Commit 86ea72f

Browse files
committed
Remove redundant groupType property assignment in Invoke-ListRoomLists for cleaner code and improved functionality.
1 parent 36ec6fc commit 86ea72f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Resources/Invoke-ListRoomLists.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ Function Invoke-ListRoomLists {
9999
# Get all room lists (original functionality)
100100
$RoomLists = New-ExoRequest -tenantid $TenantFilter -cmdlet 'Get-DistributionGroup' -cmdParams @{RecipientTypeDetails = 'RoomList'; ResultSize = 'Unlimited' } |
101101
Select-Object Guid, DisplayName, PrimarySmtpAddress, Alias, Phone, Identity, Notes, Description, Id -ExcludeProperty *data.type*
102-
$RoomLists | Add-Member -MemberType NoteProperty -Name groupType -Value 'Room List'
103102
$StatusCode = [HttpStatusCode]::OK
104103
$ResponseBody = @{ Results = @($RoomLists | Sort-Object DisplayName) }
105104
}

0 commit comments

Comments
 (0)