cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TheOne88
Level: Power Up

Change delimiter for variable from Microsoft Flow

Hi all,

 

I'm very new to Flow. I have gone through about a hundred posts and can't seem to figure this out which to me sounds like it should be very easy.

 

Basically I have responses from Microsoft Forms going into Flow. However, a multiple checklist/box gets emailed out with a format like this:

 

["Test","Test2","Test3","Test4"]

 

I need this changed to

 

Test;Test2;Test3;Test4

 

Sometimes there is multiple selections but sometimes there is also just one selection so need to make sure that if there is one selected in Forms only it will still work in Flow.

 

Any help will be greatly appreciated!

 

1 ACCEPTED SOLUTION

Accepted Solutions
TheOne88
Level: Power Up

Re: Change delimiter for variable from Microsoft Flow

Thanks I managed to figure it out after I posted.

 

Flow.jpg

 

Compose: select the variable of the form

 

Compose 2 

substring(body('Get_response_details')?['r80dd9a8106d04089b24c68e1af94c3d6'],2,sub(lastindexOf(body('Get_response_details')?['r80dd9a8106d04089b24c68e1af94c3d6'],'"]'),2))

Compose 3

replace(outputs('Compose_2'),'","',';')

 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Change delimiter for variable from Microsoft Flow

Hi @TheOne88 ,

 

It seems that you have a multiple checklist in the Form and you would like to show the selections in a format likes “Test;Test2;Test3;Test4”.

 

Please try with the following flow for a reference.

 

Initialize an array variable.

 

Function used in Compose:

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

 

Function used in Compose2:

split(outputs('Compose'),'|')

 

Function used in Compose3:

join(variables('Selections'),';')

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TheOne88
Level: Power Up

Re: Change delimiter for variable from Microsoft Flow

Thanks I managed to figure it out after I posted.

 

Flow.jpg

 

Compose: select the variable of the form

 

Compose 2 

substring(body('Get_response_details')?['r80dd9a8106d04089b24c68e1af94c3d6'],2,sub(lastindexOf(body('Get_response_details')?['r80dd9a8106d04089b24c68e1af94c3d6'],'"]'),2))

Compose 3

replace(outputs('Compose_2'),'","',';')

 

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 (Last 30 Days)
Users online (3,931)