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 / How to edit raw data i...
Power Automate
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?

 

 

Categories:
I have the same question (0)
  • JonDoesFlow Profile Picture
    1,304 on at

    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

  • Longely Profile Picture
    36 on at

    @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

    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

    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

    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

    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?

     

  • Longely Profile Picture
    36 on at

    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.

  • grantjenkins Profile Picture
    11,063 Moderator on at

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

     

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

     

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard