cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

How do i create a variable for a new line multiple selection flow (picture of my flow)

Hi Guys,

 

Ive got a flow that i need help with, the data comes from a list with several multiple selections choice columns and i have the data going to an email, it works however the data has no spacing between selections, eg

 

for forum.png

id like for the data to have a line break and a minus (-) at the start of each line i.e

 

-intersection 1

-intersection 2

etc etc

 

 

Can you please help myself with the flow below

 

foummm.png

 

Any help would be appreciated, thankyou

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @shaneOZ ,

 

To have a line break and a minus (-) at the start of each line, please try with the following flow configuration.

 

Initialize an Array Variable named as Test. Then an Apply to each action, which select value from the multiple selection enabled column, add action Append to array within the loop, and set Value with the dynamic content of the choice column value.

 

Under Apply to each, add Compose action with the following code:

join(variables('Test'),'-')

 

Add another Compose action with the following code:

concat('-',replace(outputs('Compose'),'-','</br>-'))

 

In the action send an email, select Compose output in the body field, and select Yes for the Is HTML field.

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.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Hi @shaneOZ ,

 

To have a line break and a minus (-) at the start of each line, please try with the following flow configuration.

 

Initialize an Array Variable named as Test. Then an Apply to each action, which select value from the multiple selection enabled column, add action Append to array within the loop, and set Value with the dynamic content of the choice column value.

 

Under Apply to each, add Compose action with the following code:

join(variables('Test'),'-')

 

Add another Compose action with the following code:

concat('-',replace(outputs('Compose'),'-','</br>-'))

 

In the action send an email, select Compose output in the body field, and select Yes for the Is HTML field.

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.

View solution in original post

Highlighted


@v-yamao-msft wrote:

Hi @shaneOZ ,

 

To have a line break and a minus (-) at the start of each line, please try with the following flow configuration.

 

Initialize an Array Variable named as Test. Then an Apply to each action, which select value from the multiple selection enabled column, add action Append to array within the loop, and set Value with the dynamic content of the choice column value.

 

Under Apply to each, add Compose action with the following code:

join(variables('Test'),'-')

 

Add another Compose action with the following code:

concat('-',replace(outputs('Compose'),'-','</br>-'))

 

In the action send an email, select Compose output in the body field, and select Yes for the Is HTML field.

1.PNG2.PNG

 

Best regards,

Mabel

 


Thankyou again Mabel,

 

Ill mark as solved but before i do i take it there is no way to do this in the Email V2? and i have to write it body in Html? 

Hi @shaneOZ ,

 

Have you tested it on your side?

 

If it works for you, please mark it as Answer so that it can help others who have the same issue with you.

 

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (2,842)