Skip to content

Commit

Permalink
Merge pull request #51 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
pull[bot] authored Feb 3, 2025
2 parents c44f08b + 8fa5f37 commit 9f6d293
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ Function Invoke-ExecStandardsRun {
$TemplateId = if ($Request.Query.TemplateId) { $Request.Query.TemplateId } else { '*' }
$Table = Get-CippTable -tablename 'templates'
$Filter = "PartitionKey eq 'StandardsTemplateV2'"
$Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter | Sort-Object TimeStamp).JSON | ConvertFrom-Json | Where-Object {
$Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter | Sort-Object TimeStamp).JSON | ForEach-Object {
try {
ConvertFrom-Json $_ -ErrorAction SilentlyContinue
} catch {

}
} | Where-Object {
$_.guid -like $TemplateId
}

Expand Down

0 comments on commit 9f6d293

Please sign in to comment.