You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Example on how to add Fields to an existing item? #85
I've been trying to add a new field to an existing item without much success.
varitems=onePasswordClient.GetItems(myVault)varitem=items.First(x =>x.Title=="My Title")//As is the existing fields collection is null, I need to do this to get fieldsitem=onePasswordClient.GetItem(item,myVault)
item.Fields.Add(newField("My new field",FieldType.Concealed,"My New value"));// This doesn't actually edit the item with the new fieldonePasswordClient.EditItem(item,myVault);
Resolved by #102. That change added regression coverage to verify \EditItem(...)\ preserves a custom-template item's \category_id\ during edits, and it clarified the hydrate-edit-save flow in the docs for updating existing items and adding fields. Closing this issue.
Activity
knippers commentedon Dec 3, 2024
If your item is based on a custom template item, it might be the issue described in this PR: #81
jscarle commentedon Mar 9, 2026
Resolved by #102. That change added regression coverage to verify \EditItem(...)\ preserves a custom-template item's \category_id\ during edits, and it clarified the hydrate-edit-save flow in the docs for updating existing items and adding fields. Closing this issue.