Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Nov 14, 2023
1 parent 1e655c3 commit 9834885
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ListGroupTemplates/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ $Table = Get-CippTable -tablename 'templates'
$Filter = "PartitionKey eq 'GroupTemplate'"
$Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter) | ForEach-Object {
$data = $_.JSON | ConvertFrom-Json
$data
$data | Add-Member -MemberType NoteProperty -Name GUID -Value $_.RowKey -Force
$data
} | Sort-Object -Property displayName

if ($Request.query.ID) { $Templates = $Templates | Where-Object -Property GUID -EQ $Request.query.id }
Expand Down

0 comments on commit 9834885

Please sign in to comment.