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
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
Any help would be appreciated, thankyou
Solved! Go to Solution.
Hi @Anonymous ,
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.
Best regards,
Mabel
Hi @Anonymous ,
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.
Best regards,
Mabel
@v-yamao-msft wrote:Hi @Anonymous ,
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.
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 @Anonymous ,
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
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
User | Count |
---|---|
26 | |
26 | |
25 | |
21 | |
17 |
User | Count |
---|---|
54 | |
46 | |
33 | |
32 | |
30 |