cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Soumiya15
Helper II
Helper II

How to add new line as delimiter in join

Hi all,

Please help me out with how to add a new line delimiter in the join function

join(createArray('Apple', 'Orange', 'Pear'),'s\n ')

this returns  

'Apples\n Oranges\n Pears'

But the required output is 

apples

oranges

pears

Could anyone help me out how to achieve it.

Thanks in adavanced 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Soumiya15,

 

In that case just use this:

join(createArray('Apple', 'Orange', 'Pear'), decodeUriComponent('%0A'))

View solution in original post

5 REPLIES 5
Expiscornovus
Super User
Super User

Hi @Soumiya15,

 

Can you try this expression instead:

 

join(createArray('Apple', 'Orange', 'Pear'), concat('s',decodeUriComponent('%0A')))

 

Expiscornovus
Super User
Super User

Hi @Soumiya15,

 

I just realised that the last item will not have the join character. So, in both our examples Pear will stay Pear and not become Pears because it is the last item of the array 😁

 

In that case probably the setup below is a better suggestion.

In here I use a Select to apply a concat with an s character at the end of the item (in text mode of the Map field). After that I use a join function again to add the line feed character.

 

select_add_s.png

Adding s is not need i want to split all three in new line 

Expiscornovus
Super User
Super User

Hi @Soumiya15,

 

In that case just use this:

join(createArray('Apple', 'Orange', 'Pear'), decodeUriComponent('%0A'))

Hey thanks for help it worked😊

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,535)