Hi All,
Is there a way to access the AssociatedContent for Calendar and Inbox (EWS Code below) with Microsoft Graph?
###############################################################################
#Associated Items
###############################################################################
$ItemView = New-Object Microsoft.Exchange.WebServices.Data.ItemView(1000)
$ItemView.Traversal = [Microsoft.Exchange.WebServices.Data.ItemTraversal]::Associated
$pAssociatedItems = $EWService.FindItems([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Calendar,$ItemView)
foreach ($Item in $pAssociatedItems)
{
#Subject:IPM.Configuration.WorkHours
If ($Item.Subject -eq "IPM.Configuration.WorkHours")
{
Write-Host ("Delete Item: " + $item.Subject + " ItemClass: " + $item.ItemClass)
$Item.Delete([Microsoft.Exchange.WebServices.Data.DeleteMode]::HardDelete)
}
}
Kind Regards
Andres