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 / Import email outlook t...
Power Automate
Suggested Answer

Import email outlook to excel

(1) ShareShare
ReportReport
Posted on by 12
I would like to import the beginning of text in an email to Excel via Powerautomate. The message contains: Good morning. My name is Paweł. How are you. I would like to import the first two sentences
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,968 Moderator on at
    HI
     
    I would like to have seen a properly formatted message. Its the only way to help you properly. Since you just wrong a single string up top.
     
    1. Have an Email Trigger for when one comes in
    2. Use the HTML to Text Action for the Email
     
    3. Parse the Email. Again I need to see the actual Email as its laid out to help you. Parsing can be done many different ways.
     
    If everything ends in Periods.
     
    Then do a Split(OutputOfHtmlToTextAction, '.')
     
    This will create an Array
     
    Then grab Array elements [0] and [1] and you have the first two sentences.
     
    Now you can save it wherever you want.
     
  • Suggested answer
    Inogic Profile Picture
    1,297 Moderator on at
    Hi,
     
    To take out the first two sentences from the email body please do the following step as shown below

    My email message contains the body below
    1. I have created the flow  which trigger on the modified of the Email message record
    1. then used the “Html to text” Action which converts the description field which is HTML format into a string format


     
    1. use compose action to make the array of sentences from the output of “Html to text”,
                  for that use the expression  split(body('Html_to_text'),'.')     
    currently, we are splitting the sentence based on a full stop symbol (.)
    1. then create a compose action which takes the first two sentences as shown below
    expression used are
    outputs('arrayOfSentence')?[0] :- this will give the first sentence
    outputs('arrayOfSentence')?[1] :- this will give second sentence


    Output of above flow will be

     
    Please mark this answer as accepted solution if it helped you.
     
    Hope this helps.
     
    Thanks!
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com
    Service: https://www.inogic.com/services/
    Tips and Tricks: https://www.inogic.com/blog/

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard