Timeline for How to insert data into a SharePoint multi-select field?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 25, 2019 at 14:33 | comment | added | Ganesh Sanap - MVP | No, it should work fine for you as well using SharePoint REST APIs. Is it working? | |
Nov 25, 2019 at 14:08 | comment | added | OLA | I notice in your other answer, you are using pnp and I'm not, does that matter? | |
Nov 25, 2019 at 13:44 | comment | added | OLA |
Ok. I will try that later and let you know. What would the '__metadata:' be used for then? Thank you!
|
|
Nov 25, 2019 at 3:47 | comment | added | Ganesh Sanap - MVP |
Don't pass the type in metadata. Just pass the results array.
|
|
Nov 25, 2019 at 3:46 | comment | added | Ganesh Sanap - MVP | If you are passing an array then check my answer given at: sharepoint.stackexchange.com/questions/267789/…. This should work for you. | |
Nov 25, 2019 at 3:39 | comment | added | OLA |
Yes I did. It's a choice field allowing multiple selections. 'Status': {'__metadata': {'type': 'Collection(Edm.String)'}, 'results':that.Status} that.Status is an array. Is that set up wrong?
|
|
Nov 25, 2019 at 2:15 | comment | added | Ganesh Sanap - MVP | Have you tried the 2nd/simple solution in my answer? Is data type of your column is Choice or Lookup field? | |
Nov 25, 2019 at 0:31 | comment | added | OLA |
I tried doing that but I get this error now value: "Incompatible type kinds were found. The type 'Collection(Edm.String)' was found to be of kind 'Collection' instead of the expected kind 'Primitive'."
|
|
Nov 24, 2019 at 11:16 | history | answered | Ganesh Sanap - MVP | CC BY-SA 4.0 |