web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I add a new li...
Power Automate
Unanswered

How can I add a new line in string in array

(0) ShareShare
ReportReport
Posted on by 12

Hello everyone! 

 

All methods that I find in google doesn't solve my case. 

I using forms with choice fields. In one filed I have too large text and I decide to replace the whole text with short description. I match the answers with the text in the array and trying to insert this text in to the word document template. 

 

Everything works fine. I just thinking about the possibility of formating the text. 

 

I tried to insert "NewLine" variable, Unicode for new line. Still no luck. Any thoughts? Im trying to insert new line in "Text" property.

 

Screenshot 2021-12-28 at 16.16.34.png

 

 

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,073 on at
  • DenisBalakirevV Profile Picture
    12 on at

    Hi VictorIvanidze,

     

    Yep. I saw it before and tried. No luck.

    concat(/n) just adding "NewLine" to the text. Variable do almost the same as I remember.

  • VictorIvanidze Profile Picture
    13,073 on at

    Please show your flow where you are trying to add  anew line. I'll try to reproduce the issue.

  • DenisBalakirevV Profile Picture
    12 on at

    Screenshot 2021-12-29 at 13.33.18.pngScreenshot 2021-12-29 at 13.33.27.png

    ChoosenPoAText - body('Filter_array')[0]['Text']

     

    Hope it helps

     
  • VictorIvanidze Profile Picture
    13,073 on at

    Sorry I do not see any attempt to insert a new line. Could you show it?

  • DenisBalakirevV Profile Picture
    12 on at

    Because it doesn't work. 

    Im trying to insert a new line here: 

    Initialize var 4 -> "Text" property. I tried no insert concat(\n) or variable with new line inside the text. 

     

    Screenshot 2021-12-29 at 14.35.27.png

    In word document I will see the text from the text property without NewLine.

  • VictorIvanidze Profile Picture
    13,073 on at

    Ah, now I see what you mean. Well, could you try to create a properly formatted plain text document or HTML and then convert it to DOCX?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard