Hello everyone,
I built a form which contains a multi choice field (A, B, C). If I try to save it in the sharepoint then then it gets to comma separated value (string representation of an array, I guess) which is entirely useless because it does not match the values defined in the sharepoint field. The proper filtering is also impossible.
What is the proper way to pass the selected values from a form multi choice field into the sharepoint multi choice field?
See the screenshots of my present configuration.
Thank you in advance
rgolbang
Definition in MS Forms
Definition in MS Sharepoint
Passing value from the Form into the Sharepoint field using MS Flow
Value saved in sharepoint AFTER the flow has run
Solved! Go to Solution.
Hi @rgolbang,
I have made a test on my side and there is no any way to achieve your needs in microsoft flow currently.
Inserting value into a multi Choice field is not supported in microsoft flow currently.
If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas
Best regards,
Alice
Hi @rgolbang,
I have made a test on my side and there is no any way to achieve your needs in microsoft flow currently.
Inserting value into a multi Choice field is not supported in microsoft flow currently.
If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas
Best regards,
Alice
There is a way to do that. A tad ugly but it's doing exactly when you needed - gets multiple choices from MS Forms and then saves them into SP list into a multi-choice column (as long as choices are the same).
I gotta do some polishing and will post it here.
This link seems to have an easy solution but it's not working for me.
@PowerGell54 Have you tried a simple solution that I linked in my post? Did it not work for you?
Honestly, it never did for me.
But I do have a different way of doing it which seems to have more logic behind it and it looks pretty simple too.
Absolutely! I'll try to post by the end of the weekend.
It is pretty cool to see how many different workarounds people can come up with 🙂
What I still don't get is what kind of trick this ;# does.
@v-yuazh-msft Do you think you guys might change something that will break any of these workarounds?
So here is my version of the workaround.
A flow that works needs to have these core steps:
Where Initializing an array variable:
Removing extra symbols from MS Forms string output:
replace(replace(replace(body('Get_response_details')?['r5beb9c2e9e4849129d94468e3db92b7a'],'","','|'), '["',''), '"]','')
Splitting the previous compose into an array:
split(outputs('Format_form_output'),'|')
Appending to array variable using a formula:
Creating an item (in a Create Item step a Switch to input entire array option must be selected for that very multi choice field):
Please note that if you don’t work with Microsoft Forms and already have an array of values, then the steps are just initializing an array and appending to array variable using a formula. That’s it!
For more details and my thought process please visit my new blog, thanks!
https://365basics.com/microsoft-flow-populate-a-multi-choice-field-in-sharepoint/
@bloodoff I have a simple excel file that I want to import into a SharePoint list using Flow. Some of the columns are choice fields. Can this be simplified for an excel file or would the steps probably be the same?
Thanks!
@Anonymous if you can extract chosen values from your excel and create an array of them, then there won't be any difference for you. Please try.
If any issues, Iet us know. I typically don't work with Excel files so I'll have to take a look.
Hello,
I followed the steps. No error when I check my flow chart. But, I keep receiving this error message when I test it. How can I resolve this?
"Unable to process template language expressions in action'Format_Form_Output' inputs at line '1' and column '22714': 'The template language function 'replace' expects its first parameter 'string' to be string. The provided value is of tye 'Null'. Please see https://aka.ms.logicexpressions#replace for usage details.'.
Please help.
@TediBear
I managed to get it working, try this:
Create a Sharepoint Item with your form data
Apply to each on your multi choice, parse it and join with ;#
Update the item with the output of Join
Thank you so much!!! It worked!!!
Hi @PowerGell54 ! I am trying to solve a similar issue. However in my case more that one question in the form is multiple choice and I need to map the answer to multiple choice columns in sharepoint. Any suggestions in terms of how the flow would look like for two questions with multiple choices?
Also, what steps come before the apply to each 3 box you have in your screenshot? Did you remove the extra characters? Thanks!
User | Count |
---|---|
101 | |
36 | |
29 | |
25 | |
16 |
User | Count |
---|---|
133 | |
54 | |
53 | |
37 | |
26 |