Skip to content

Commit

Permalink
Fix pdated managed api to produce more output
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Harshberger committed Feb 21, 2024
1 parent 74e342b commit 24036db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/CippExtensions/Autotask/Set-AutotaskManaged.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ function Set-AutotaskManaged {

$Table = Get-CippTable -tablename 'CippMapping'

Write-LogMessage -API $APINAME -user $request.headers.'x-ms-client-principal' -message ConvertTo-Json $Request.body -Depth 10 -Sev 'Info'
Write-LogMessage -API $APINAME -user $request.headers.'x-ms-client-principal' -message $(ConvertTo-Json $Request.body -Depth 10) -Sev 'Info'

foreach ($Mapping in ([pscustomobject]$Request.body).psobject.properties) {
Write-LogMessage -API $APINAME -user $request.headers.'x-ms-client-principal' -message ConvertTo-Json $Mapping -Depth 10 -Sev 'Info'
Write-LogMessage -API $APINAME -user $request.headers.'x-ms-client-principal' -message $(ConvertTo-Json $Mapping -Depth 10) -Sev 'Info'
$Filter = "PartitionKey eq 'Mapping' and AutotaskPSAName eq '$($mapping.name)'"
$res = Get-CIPPAzDataTableEntity @CIPPMapping -Filter $Filter

Expand Down

0 comments on commit 24036db

Please sign in to comment.