Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to edit raw data instead of formatted one

(0) ShareShare
ReportReport
Posted on by 36

hello there,

I have set up a flow to turn

 

 

123-bla-user@mail.
domain. com

into "123-bla-user@mail.domain.com" but it just ends up with

 

 

123-bla-user@mail.\ndomain.com​

instead. Although my flows starts with a html to text function, so I assume I need to change that to sth else but what?

 

 

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: How to edit raw data instead of formatted one

    The following should work. Note that decodeUriComponent('%0A') represents a new line character.

     

    replace(outputs('Compose'), decodeUriComponent('%0A'), '')

     

  • Longely Profile Picture
    36 on at
    Re: How to edit raw data instead of formatted one

    Longely_0-1698170962867.pngLongely_1-1698171109473.png

    here is a shorted version of my flow with the problem reproducable. the replace function in compose 2 does nothing with the raw data and thus does not alter anything.

  • Longely Profile Picture
    36 on at
    Re: How to edit raw data instead of formatted one

    Sorry but that's way too much to show @Jondoesflow . Each flow steps has too much input and output to show all of the code, also if I am honest I don't get what new stuff it could show you.

    Starting point is an email body containing "123-bla-user@mail.\ndomain. com" if looking at raw data or "123-bla-user@mail.
    domain. com"
      if looking normal outputs/inputs field. After filtering the rest of the email body out I am left with that part, deleted the space after domain. com and now am stuck with 

    123-bla-user@mail.\ndomain.com​

     I don't think it makes any difference where in the flow the problem with \n is adressed or does it?

     

  • JonDoesFlow Profile Picture
    1,304 on at
    Re: How to edit raw data instead of formatted one

    No worries. Just difficult to reproduce on my end. Can you show a screenshot of a run of the flow with each of the steps expanded ?

  • Longely Profile Picture
    36 on at
    Re: How to edit raw data instead of formatted one

    thanks for your help @Jondoesflow 

    the weirdly formatted email is extracted from the body of an email.

    Longely_0-1698166155471.png

    the \n is included in the raw text output starting from the very beginning of the process.

  • JonDoesFlow Profile Picture
    1,304 on at
    Re: How to edit raw data instead of formatted one

    Hey @Longely I am missing the steps where the \n is getting added to the string.  Can you show your flow in it's entirety ?

  • Longely Profile Picture
    36 on at
    Re: How to edit raw data instead of formatted one

    @Jondoesflow 

    Longely_0-1698164413571.png

    already in place. As I said the shown and interacted with data looks like 
    123-bla-user@mail.
    domain. com

    so there is no "\n" to be removed. I need to force power automate to instead work with the raw data which would show 

    123-bla-user@mail.\ndomain.com​

     but how do i force that if not with html to text function?

  • JonDoesFlow Profile Picture
    1,304 on at
    Re: How to edit raw data instead of formatted one

    Hey @Longely 

     

    could you use the replace function ?

     

    have a compose step after the email address with \n has been created 

     

    then do replace(‘your_action’?[‘your_field’],’\n’,’’)

    ---------------------------------------------------------------------------


    If I have helped you with an answer, please accept this post as a solution and thumbs up my reply. Thanks !

    Blog - JonDoesFlow
    Twitter - JonDoesFlow
    YouTube - JonDoesFlow

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1