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 / Parsed text from Mail ...
Power Automate
Unanswered

Parsed text from Mail is with code

(0) ShareShare
ReportReport
Posted on by 30

Dear all,

 

I have set up a flow that worked for weeks and then someone opened it and now I do face an issue.

The Flow is supposed to extract the body of an email and then write it into an excel list.

What the flow now is doing is that is has coding in between the words.

So instead of the text like:

"

Sehr geehrte Damen und Herren,
 
hiermit erhalten Sie die Rechnung MG_1159750_2023_4_16
20.04.2023 zurück. Die Rechnung kann in unserem System nicht
gebucht werden.
Gründe sind:"
 
Now it looks like this:
"</style></head><body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div class="WordSection1"><p class="MsoPlainText"><span lang="DE">Sehr geehrte Damen und Herren,</span></p><p class="MsoPlainText"><span lang="DE">&nbsp;</span></p><p class="MsoPlainText"><span lang="DE">ich hoffe, meine E-Mail erreicht Sie sicher.</span></p><p class="MsoPlainText"><span lang="DE">&nbsp;</span></p><...."
 
The flow is setup as the following:
- when a new mail arrives in a shared mailbox (with predefined subject)
- initialise variable (Name: Email Body; Type: String; Value: EmailBody)
- Initialiase variable 2 (Name: EmailStep1, Type: String; Value: 
last(split(variables('EmailBody'),'freundlichen:')) ) 
- Initialise variable 3 (Name: EmailStep2; Type: String; Value: 
first(split(variables('EmailStep1'),'Bitte')) )
- Add row to excel
 
Any ideas?
 
Screenshot 2023-08-10 144104.png

 
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    There is an HTML to text action you can use to strip out the HTML tags.

  • lor01 Profile Picture
    30 on at

    @Pstork1 So just use the HTML to text and put it right before the excel action?

    That is not workingScreenshot 2023-08-10 150558.png

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    The action strips the HTML tags from whatever text you feed in.  Then you use the output of that action where you were using the text.  I assume the variables etc are doing some processing of the email body so the variable that has the text in it with the HTML tags should be the input, not the Email body.  and then use the HTML to Text action output in the Excel sheet.

     

    Could you also be more specific about what isn't working?

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard