Fix renaming Settings Catalog policies
This commit is contained in:
Mikael Karlsson
2025-08-03 20:12:34 +10:00
parent a0bac61ba4
commit 8952e2894a
2 changed files with 5 additions and 5 deletions

View File

@@ -4082,8 +4082,8 @@ function Show-GraphObjectInfo
return
}
# Save settings here...
$nameProp = (?? $global:dgObjects.SelectedItem.Object.NameProperty "displayName")
$idProp = (?? $global:dgObjects.SelectedItem.Object.IDProperty "id")
$nameProp = (?? $global:dgObjects.SelectedItem.ObjectType.NameProperty "displayName")
$idProp = (?? $global:dgObjects.SelectedItem.ObjectType.IDProperty "id")
$updateObj = [PSCustomObject]@{
$idProp = $global:dgObjects.SelectedItem.Object."$idProp"