We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e7c52 commit bc55aedCopy full SHA for bc55aed
1 file changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecEditTemplate.ps1
@@ -20,6 +20,9 @@ function Invoke-ExecEditTemplate {
20
$Template = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq 'IntuneTemplate' and RowKey eq '$GUID'"
21
$OriginalJSON = $Template.JSON
22
23
+ $TemplateData = $Template.JSON | ConvertFrom-Json
24
+ $TemplateType = $TemplateData.Type
25
+
26
if ($Template.SHA) {
27
$NewGuid = [guid]::NewGuid().ToString()
28
} else {
@@ -36,7 +39,7 @@ function Invoke-ExecEditTemplate {
36
39
RawJson = $RawJSON
37
40
DisplayName = $Request.Body.displayName
38
41
Description = $Request.Body.description
- templateType = $Template.Type
42
+ templateType = $TemplateType
43
Package = $Template.Package
44
Headers = $Request.Headers
45
}
0 commit comments