Skip to content

Commit

Permalink
include errors hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Sep 26, 2023
1 parent b392ea9 commit 746ad13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GraphHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ function Remove-CIPPCache {
function New-ExoRequest ($tenantid, $cmdlet, $cmdParams, $useSystemMailbox, $Anchor, $NoAuthCheck) {
if ((Get-AuthorisedRequest -TenantID $tenantid) -or $NoAuthCheck -eq $True) {
$token = Get-ClassicAPIToken -resource 'https://outlook.office365.com' -Tenantid $tenantid
$tenant = (get-tenants | Where-Object -Property defaultDomainName -EQ $tenantid).customerId
$tenant = (get-tenants -IncludeErrors | Where-Object -Property defaultDomainName -EQ $tenantid).customerId
if ($cmdParams) {
$Params = $cmdParams
}
Expand Down

0 comments on commit 746ad13

Please sign in to comment.