Replies: 1 comment
-
To correctly handle the "complex" fields we indeed need to have the field information loaded, your sample is OK. https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#reading-list-items describes how to be best ensure all the fields of the list are installed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The example in the documentation https://pnp.github.io/pnpcore/using-the-sdk/listitems-fields.html#user-fields
Adds the "MyField" column to the list and then uses it to add a ListItem.
What about When the person column already exists?
I tried to create a "FieldUserValue" and add the user created with EnsureUserAsync but it returns a REST error.
Why doesn't
values.Add("ManagerLookupId", myUser.Id );
orvalues.Add("ManagerId", myUser.Id );
work ?Where can I find simple example?
I managed with
Is this the simplest way to do it? seems too much 😒🤦♂️
Beta Was this translation helpful? Give feedback.
All reactions