Skip to main content

Notifications

Power Automate - General Discussion
Answered

Need help with adding a new line in a String Variable

(0) ShareShare
ReportReport
Posted on by 4

So I've been trying to add a new line to a string variable, and I've tried multiple things, but to no avail.

MCerpa_1-1650462570325.png

 

This is the last thing that I've tried, but it just puts in the literal </br> text into the word document I'm putting it into. I've also tried to make a New Line string variable, but that didn't work. 

MCerpa_0-1650462396636.png

 

MCerpa_2-1650462601802.png

 

Anyone have any ideas on how I can make this work for a Word Document template?

 

  • Madra Profile Picture
    Madra 72 on at
    Re: Need help with adding a new line in a String Variable

    You're welcome, glad to have helped.

  • MCerpa Profile Picture
    MCerpa 4 on at
    Re: Need help with adding a new line in a String Variable

    I can't believe the solution was so easy, thank you so much!

  • Verified answer
    Madra Profile Picture
    Madra 72 on at
    Re: Need help with adding a new line in a String Variable

    Hello,

    Assuming you are creating your Word document with the Word connector and are using brut text content controles to add your text (this:

    Madra_2-1650464536824.png

    , you can allow a new line using the properties of your content by allowing the carriage return directly inside your Word document template:

    MS-Word-Multiline


    You can, then, simply add new lines to your variables with the Enter key.

    Hoping this helps you.
    Madra

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard