Skip to content

Commit

Permalink
PowerCommand: Add-KeeperRecord cmdlet fails to add custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-keeper committed Sep 13, 2023
1 parent 0dc02e4 commit 87b7b61
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified PowerCommander/Google.Protobuf.dll
Binary file not shown.
Binary file modified PowerCommander/KeeperSdk.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions PowerCommander/RecordCommands.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ function Add-KeeperRecord {
}
}
if ($fieldValue) {
[KeeperSecurity.Vault.VaultExtensions]::SetCustomField($record, $fieldName, $fieldValue) | Out-Null
$record.SetCustomField($fieldName, $fieldValue) | Out-Null
}
else {
[KeeperSecurity.Vault.VaultExtensions]::DeleteCustomField($record, $fieldName) | Out-Null
$record.DeleteCustomField($fieldName) | Out-Null
}
}
}
Expand Down

0 comments on commit 87b7b61

Please sign in to comment.