Adaptive Card Response & Email Line Breaks

itmandan 31 Reputation points
2021-09-02T11:26:20.343+00:00

Hi,

I have a 'Post adaptive card and wait for a response' 128725-2021-09-02-12-18-13-designer-adaptive-cards-mozill.png

After the text field has had some text input & submitted I am trying to get the flow to then email a teams channel the response. My issue is that the email will display all the text on the same line, not with it's line break from the input text field.

E.g. rather than displaying like:

New release:
Bug fix v1
Improvments to XYZ
Performance enhancements

It'll show that all on one line when the email is sent.

I've tried various ways using compose to try and add <br> or use a teams message instead but it's the same result. I could seperate the card text field out and that would probably work, but for my use case I just want one text field when it's sent for them to fill out

128674-2021-09-02-12-25-01-window.png

Any ideas?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,868 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,656 Reputation points
    2021-09-13T08:11:56.287+00:00

    @itmandan Apology for the delay in reaching out. I believe you might have already found the answer but posting the answer for other facing the similar issue.
    It depends upon how your inputText looks like. For newline you should use <br /> in your input text so it is formated correctly in the next line. For the testing I have define the variable for my input in the below workflow. You can verify the output of your Post adaptive card and wait for a response action and if the entered text have \n for next line then you can use replace to replace the \n with <br />

    Your input text should be :
    New release: <br />Bug fix v1 <br />Improvments to XYZ <br />Performance enhancements <br />

    131498-image.png

    Alternative you can enter your text in body as below and navigate to Code View to get the exact formated string.

    131468-image.png

    131469-image.png

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful