We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1cd451 commit 359ea31Copy full SHA for 359ea31
1 file changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Scheduler/Invoke-ListScheduledItems.ps1
@@ -89,14 +89,18 @@ function Invoke-ListScheduledItems {
89
}
90
$Task | Add-Member -NotePropertyName TenantGroupInfo -NotePropertyValue $TenantGroupForDisplay -Force
91
# Update the tenant to show the group object for proper formatting
92
- $Task.Tenant = @($TenantGroupForDisplay)
+ $Task.Tenant = $TenantGroupForDisplay
93
94
} catch {
95
Write-Warning "Failed to parse tenant group information for task $($Task.RowKey): $($_.Exception.Message)"
96
# Fall back to keeping original tenant value
97
98
} else {
99
- $Task.Tenant = @($Task.Tenant)
+ $Task.Tenant = [PSCustomObject]@{
100
+ label = $Task.Tenant
101
+ value = $Task.Tenant
102
+ type = 'Tenant'
103
+ }
104
105
106
$Task
0 commit comments