Hello,
I try to convert an array to strings, each array item has to become a separate string.
The array comes from a multiple choice field (max 4 items) in sharepoint. The selected items of this choice field should be stored as a string depending on the ID of the item. I have 4 strings with pre defined value (text0, text1, text2 and text3).
Example: only ID 0 + 1 + 3 have been selected, so that I want string text2 to be empty. It is also possible that only one item has been selected (so 3 strings have to become empty), or even none (with all strings empty).
[
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 0,
"Value": "text0"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "text1"
},
{
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 3,
"Value": "text3"
}
]
Maybe there is a simple way to solve this, but I cannot find the forest due to too many trees...
Thanks for your help
Paul