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
@matsla : originally we needed the IField reference when processing list items, but after a refactoring a while ago this seems to be not relevant anymore (at least after a quick code check)...so, I think we can simplify the model a bit here. Will do some more checking / prototyping and will, if all turns out fine, update our code.
To handle user values for a list item. Can't this be simplified?
https://pnp.github.io/pnpcore/using-the-sdk/listitems-fields.html#user-fields
Support to crate an instance of FieldUserValue, it's now protected.
FieldUserValue userValue = new FieldUserValue();
userValue.LookupId = user.Id; // user => ensuredUser
values.Add("MyUserField", userValue);
var addedItem = await myList.Items.AddAsync(values);
The text was updated successfully, but these errors were encountered: