cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Basic_User007
Kudo Kingpin
Kudo Kingpin

Results from a form - multiple answers - format in SP list - additional characters

I am working on a Flow that takes Forms responses and feeds them into a SP list. I am having an issue with multiple choice questions where in the SP list these responses have additional ["characters"] around the responses. How do I remove these characters?  

 

I've done some research and looks like I need to apply a replace(... expression somewhere but can't get this to work and I am not familiar with expressions at all. 

 

So do I let the flow post the response with additional characters and then apply an update step with some replace( formula to remove or can this be applied when the item is created in the SP list using dynamic content response in the formula?

 

Please help. 

1 ACCEPTED SOLUTION

Accepted Solutions

5 REPLIES 5
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Basic_User007 

 

use expressions

 

replace(replace(replace(dynamiccontentfieldinform,'["',''),'"]',''),'","',',')

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

v-bacao-msft
Community Support
Community Support

 

Hi @Basic_User007 ,

 

Please refer to this similar thread and see if it helps:

Saving-multiple-checkboxes-values-from-forms-to-excel

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I added this into the Flow but the formula is now returning as part of the response posted in the SP list? 

Managed to get this working with the solution posted in this article - https://powerusers.microsoft.com/t5/Building-Flows/Form-to-Sharepoint-template-quot-How-do-I-get-rid...

GM8
Regular Visitor

I had my colum choices colour coded in SharePoint. I found that adding a '#' before each additional item and replacing commas with a semicolon preserved column formatting (e.g. First;#Second;#Third) .

 

 

replace(replace(replace(body('Get_response_details')?['r676aaefb8a4b4a6c81675db2517d6e1d'],'","',';#'), '["',''), '"]','')

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,792)