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

Converting multi choice form item into multi choice field in sharepoint

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 FormsDefinition in MS FormsDefinition in MS SharepointDefinition in MS SharepointPassing value from the Form into the Sharepoint field using MS FlowPassing value from the Form into the Sharepoint field using MS FlowValue saved in sharepoint AFTER the flow has runValue saved in sharepoint AFTER the flow has run

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

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

View solution in original post

16 REPLIES 16
v-yuazh-msft
Community Support
Community Support

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

Anonymous
Not applicable

@v-yuazh-msft

@rgolbang

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.

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Record-Microsoft-Form-choice-response-to-the-Share...

You have any luck on this yet, would love to implement it in my flow ASAP

Thanks
Anonymous
Not applicable

@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.

No the above didn’t work for me, any chance you could share your method with us?

Thanks
Anonymous
Not applicable

Absolutely! I'll try to post by the end of the weekend.

You absolute legend! 🙂

Deleted as I found an error, will get back to you
Anonymous
Not applicable

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:

  • initialize an array variable (1)
  • remove extra symbols from Microsoft Forms string output
  • split the previous line into an array (not the same step 1)
  • append to array variable using a formula
  • create a SharePoint list item

 

20181202_9.png

Where Initializing an array variable:

20181202_10.png

Removing extra symbols from MS Forms string output:

replace(replace(replace(body('Get_response_details')?['r5beb9c2e9e4849129d94468e3db92b7a'],'","','|'), '["',''), '"]','')

20181202_11.png

Splitting the previous compose into an array:

split(outputs('Format_form_output'),'|')

20181202_12.png

Appending to array variable using a formula:

20181202_13.png

Creating an item (in a Create Item step a Switch to input entire array option must be selected for that very multi choice field):

20181202_14a.png

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/

Anonymous
Not applicable

@Anonymous  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
Not applicable

@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 dataCreate a Sharepoint Item with your form dataApply to each on your multi choice, parse it and join with ;#Apply to each on your multi choice, parse it and join with ;#Update the item with the output of JoinUpdate the item with the output of Join

Thank you so much!!! It worked!!!

Anonymous
Not applicable

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!

@PowerGell54 

 

You are an angel!!!

 

Thank you soooo much!!!

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages