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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Removing CR from text ...
Power Automate
Answered

Removing CR from text string

(0) ShareShare
ReportReport
Posted on by 19

Hello,

 

I am reading a text string in a variable, but I need to get rid of any CR (line break) characters in this variable so that I end up with one very long text value.

Any tips or advice on how to do this would be appreciated.

Thanks,

 

Kris_Belgium

Categories:
  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @kris_T ,

     

    Check out this post with a few options and see if it helps

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @kris_T 

     

    Try this way as below

    Nived_Nambiar_0-1629807450400.png

     

     

    First I intialized a variable [for demo] which contains values as below

    Nived_Nambiar_5-1629807687210.png

     

     

    Now using formulas

     

    I did like this below

    formula used in compose action :  

    join(split(variables('Data'),decodeUriComponent('%0A')),'')
     
     
    This way i am able to replace the new lines an join them together:
    Nived_Nambiar_6-1629807724366.png

     

     
     
    Regards,
    Nived N

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard