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 / "\n" characters being ...
Power Automate
Unanswered

"\n" characters being included in the end of my string, how to remove?

(1) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I have a flow where I'm grabbing the meeting invitees from a Sharepoint list, these are formatted in multiple email addresses that can be different each time and submitted as "example1@example.com;example2@example.com" in the list.

When I select the meeting invitees I get "example1@example.com;example2@example.com\n" as my string. I'd like to remove the /n characters as this is causing my create a teams meeting action to fail when I use the output of my meeting invitees for the required attendees field.

Could someone please help me out figure this out?

Thank you in advance

Categories:
I have the same question (0)
  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @melf123 ,

     

    Try the replace() expression:

    rzaneti_0-1695662782840.png

     

    Output:

    rzaneti_1-1695662797903.png

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/ 

  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at

    Hi @melf123 ,

     

    You can inject a compose action and use a replace() expression.  Here's my test.

    trice602_0-1695662831112.png

     

    trice602_2-1695662923801.png

     

    replace(items('Apply_to_each')?['field_1'],'\n','')
     
     

     

     

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Use replace to remove the \n - if you don't have any luck with the \n replace as per the examples above use:

    decodeUriComponent('%0A'instead of the \n. 

     

    Example: 

    replace(TheThingToReplace, decodeUriComponent('%0A'), '')

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

  • melf123 Profile Picture
    on at

    Thank you for your help, this formula worked!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard