Skip to content

Commit dfd4273

Browse files
authored
Merge pull request #857 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 31e7d5d + 1fc8a50 commit dfd4273

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardLegacyEmailReportAddins.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Invoke-CIPPStandardLegacyEmailReportAddins {
4646
)
4747

4848
try {
49-
$CurrentApps = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/applications&select=addins" -TenantID $Tenant
49+
$CurrentApps = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/applications?`$select=id,addIns" -TenantID $Tenant
5050

5151
# Filter to only applications that have the legacy add-ins we're looking for
5252
$LegacyProductIds = $LegacyAddins | ForEach-Object { $_.ProductId }
@@ -108,7 +108,7 @@ function Invoke-CIPPStandardLegacyEmailReportAddins {
108108
# If we performed remediation and need to report/alert, get fresh state
109109
if ($RemediationPerformed -and ($Settings.alert -eq $true -or $Settings.report -eq $true)) {
110110
try {
111-
$FreshApps = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/applications&select=addins" -TenantID $Tenant
111+
$FreshApps = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/applications?`$select=addIns" -TenantID $Tenant
112112
$LegacyProductIds = $LegacyAddins | ForEach-Object { $_.ProductId }
113113
$FreshInstalledApps = $FreshApps | Where-Object {
114114
$app = $_

0 commit comments

Comments
 (0)