File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Entrypoints/HTTP Functions/CIPP/Core Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ function Invoke-ExecEditTemplate {
2020 $Template = Get-CIPPAzDataTableEntity @Table - Filter " PartitionKey eq 'IntuneTemplate' and RowKey eq '$GUID '"
2121 $OriginalJSON = $Template.JSON
2222
23+ $TemplateData = $Template.JSON | ConvertFrom-Json
24+ $TemplateType = $TemplateData.Type
25+
2326 if ($Template.SHA ) {
2427 $NewGuid = [guid ]::NewGuid().ToString()
2528 } else {
@@ -36,7 +39,7 @@ function Invoke-ExecEditTemplate {
3639 RawJson = $RawJSON
3740 DisplayName = $Request.Body.displayName
3841 Description = $Request.Body.description
39- templateType = $Template .Type
42+ templateType = $TemplateType
4043 Package = $Template.Package
4144 Headers = $Request.Headers
4245 }
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ function Update-CIPPDynamicTenantGroups {
198198 $LogicOperator = if ($Group.RuleLogic -eq ' or' ) { ' -or ' } else { ' -and ' }
199199 $WhereString = $WhereConditions -join $LogicOperator
200200 Write-Information " Evaluating tenants with condition: $WhereString "
201+ Write-LogMessage - API ' TenantGroups' - message " Evaluating tenants for group '$ ( $Group.Name ) ' with condition: $WhereString " - sev Info
201202
202203 $ScriptBlock = [ScriptBlock ]::Create($WhereString )
203204 $MatchingTenants = $TenantObj | Where-Object $ScriptBlock
You can’t perform that action at this time.
0 commit comments