We have sharepoint list with a column having a choice type. It also allows multiple selections.
How do we insert from Power Automate an array, with multiple values, into this sharepoint column?
There are two ways to insert multiple values from a single element into a sharepoint list column:
Create a target column:
Create an array. E.g. as an array type in a Parse JSON action.
Create a Select
action.
From: Choose the array (e.g. if coming from a Parse Json directly choose the element that is multiselect).
Map:
Be warned when returning to the flow the UI might deceptively render the item()
as a Parse JSON field. Behold the Select-Legislation item() entry below ...
In your Flow's sharepoint target field, insert "Output" from the select. Power Automate Flow > Sharepoint Create Item > Sharepoint Choice Type Column ...
Save your flow and test.
If, in the Sharepoint List, one chooses a column type of "Single line of text", rather than "Choice", then you can insert multiple selects straight into the column as an array of strings.(LocalLandServicesAffected is a "Single line of text"). ...
... and this simplifies the flow in that you can just insert the JSON parsed field directly, rather than have to go via a select ...
However, there might be consequences, between the two design patterns (List "Single line of text" V "Choice"), in terms of reporting (e.g. Using PowerBI from the List). I suspect going with Choice is the more robust path. But that might create, in principle, a much higher maintenance burden (one could otherwise just change input element choices with with nothing else to do).