Skip to content

Commit 99c841a

Browse files
text replacements
1 parent d8b4f9f commit 99c841a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Modules/CIPPCore/Public/GraphHelper/New-ExoRequest.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function New-ExoRequest {
5454
Parameters = $Params
5555
}
5656
}
57+
$ExoBody = Get-CIPPTextReplacement -TenantFilter $tenantid -Text $ExoBody
5758

5859
$Tenant = Get-Tenants -IncludeErrors | Where-Object { $_.defaultDomainName -eq $tenantid -or $_.customerId -eq $tenantid }
5960
if (-not $Tenant -and $NoAuthCheck -eq $true) {

Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function New-GraphPOSTRequest ($uri, $tenantid, $body, $type, $scope, $AsApp, $N
2020
$contentType = 'application/json; charset=utf-8'
2121
}
2222
try {
23+
$body = Get-CIPPTextReplacement -TenantFilter $tenantid -Text $body
2324
$ReturnedData = (Invoke-RestMethod -Uri $($uri) -Method $TYPE -Body $body -Headers $headers -ContentType $contentType -SkipHttpErrorCheck:$IgnoreErrors -ResponseHeadersVariable responseHeaders)
2425
} catch {
2526
$Message = if ($_.ErrorDetails.Message) {
@@ -37,4 +38,4 @@ function New-GraphPOSTRequest ($uri, $tenantid, $body, $type, $scope, $AsApp, $N
3738
} else {
3839
Write-Error 'Not allowed. You cannot manage your own tenant or tenants not under your scope'
3940
}
40-
}
41+
}

0 commit comments

Comments
 (0)