Skip to main content

Notifications

Community site session details

Community site session details

Session Id : D+7HfFWNTg5rA+KvUErXXn
Power Automate - Building Flows
Unanswered

How can I add a new line in string in array

Like (0) ShareShare
ReportReport
Posted on 28 Dec 2021 13:17:48 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

 

 

  • VictorIvanidze Profile Picture
    12,222 on 29 Dec 2021 at 15:03:55
    Re: How can I add a new line in string in array

    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?

  • DenisBalakirevV Profile Picture
    12 on 29 Dec 2021 at 11:36:34
    Re: How can I add a new line in string in array

    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
    12,222 on 29 Dec 2021 at 10:42:37
    Re: How can I add a new line in string in array

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

  • DenisBalakirevV Profile Picture
    12 on 29 Dec 2021 at 10:35:45
    Re: How can I add a new line in string in array

    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
    12,222 on 29 Dec 2021 at 08:02:50
    Re: How can I add a new line in string in array

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

  • DenisBalakirevV Profile Picture
    12 on 29 Dec 2021 at 07:58:56
    Re: How can I add a new line in string in array

    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
    12,222 on 28 Dec 2021 at 16:41:23

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Churchy Profile Picture

Churchy 6

#2
Chriddle Profile Picture

Chriddle 4 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 4

Overall leaderboard