cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

How to convert an input string to list item choices in Sharepoint?

Hi Everyone,

I have a weird use case for converting a string into the their correspoding choices in a sharepoint list.

 

The input string would someting like this:

A;#B;#;D#;G#

 

The multivalue choice items the Sharepoint item are

A, B, C, D, E, F, G

 

When MS Flow runs, I only want these choice items selected.

A, B, D, G

 

Would just replacing ";#" to "," do it?

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Advocate II
Advocate II

Hi All,

What a great community of developers! I posted the question last night and got the answer this morning!

Thank you Pieter Veenstra for the great explanation and example. Looping through the array and adding to the variable was the key.

https://veenstra.me.uk/2019/04/01/microsoft-flow-update-a-multi-select-choice-field-in-a-sharepoint-...

View solution in original post

2 REPLIES 2
Advocate II
Advocate II

I tried multiple scenarios.
1) Split the entry into array
[
"A",
"B",
"D",
"G"
]

2) but to assign the array into the muti-value field. the array must read like this:
[
{
"Value": "A"
},
{
"Value": "B"
},
{
"Value": "D"
},
{
"Value": "G"
}
]

Advocate II
Advocate II

Hi All,

What a great community of developers! I posted the question last night and got the answer this morning!

Thank you Pieter Veenstra for the great explanation and example. Looping through the array and adding to the variable was the key.

https://veenstra.me.uk/2019/04/01/microsoft-flow-update-a-multi-select-choice-field-in-a-sharepoint-...

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (52,361)