cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoseZald101
Level: Powered On

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
JoseZald101
Level: Powered On

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

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
Highlighted
JoseZald101
Level: Powered On

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

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"
}
]

JoseZald101
Level: Powered On

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

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
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,047)