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 / How to extract date an...
Power Automate
Unanswered

How to extract date and time stamp of specific emails received in Outlook automatically and populate data in Excel File ?

(0) ShareShare
ReportReport
Posted on by

I have checked the following and tried to incorporate them:

Solved: Re: Create a Flow when email body contain a specif... - Power Platform Community (microsoft.com)

 

Solved: Re: Extract an Email Received Date/Time and Update... - Power Platform Community (microsoft.com)

 

but I am stuck - how to i get the action name for "Extract the date and time of the email received" ?

 

condition: The emails received with specific words 

and with those emails, extract:

- the date and time received

- from (sender)

- message subject

- Size of message

and place the above information in an excel file that is in sharepoint site.

 

This is the current skeleton of my flow

memento_0-1719128075871.png

 

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,985 Super User 2026 Season 1 on at

    HI @memento ,

     

    Search for the Received Time property. In the example below the Received Time property is being stored in a Compose action:

     

    2024-06-23_10-08-09.gif


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site

  • memento Profile Picture
    on at

    Thanks @ekarim2020 

    This is what i did, the flow ran successfully but nothing was added to my excel table:

    memento_0-1719186507123.png

     

     

    memento_1-1719186545687.png

     

    The message :

    memento_2-1719187110258.png

    But in the email test message, I did include the following statement "Pertaining to the below complaint,"

    memento_3-1719187182163.png

    What went wrong ?

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @memento ,

    Regarding the format of line breaks in the body of an email, I suggest you split each word into.

    I did a test for your reference.

    My Excel Table:

    vyetonggumsft_6-1719193498617.png

    My Flow:

    vyetonggumsft_5-1719193475229.png

    Best Regards,

    Sunshine Gu

  • memento Profile Picture
    on at

    Thanks @v-yetonggu-msft it works now.

     

    But how to just show the date only under Date Received 

    and also time only in local time under Time Received?

     

    memento_0-1719199939769.png

     

    Desired Output

    Date Received = 2024-06-24

    Time Received = 11:24 

     

    Thanks.

  • memento Profile Picture
    on at

    Hi 

     

    I have managed to resolve the date and time part:

    memento_0-1719209403003.png

     

    formatDateTime(utcNow(),'yyyy-MM-dd')
    formatDateTime(utcNow(),'hh:mm')

     

    But the time is incorrect.

    How do I convert the time to local time?

  • memento Profile Picture
    on at

    I checked this

    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

    and 

    Default Time Zones | Microsoft Learn

     

    But I can't seem to get right syntax to convert the time.

     

    Please help !

     

  • memento Profile Picture
    on at

    Refering to Default Time Zones | Microsoft Learn

     

    I tried to change:

    formatDateTime(utcNow(),'hh:mm')

     

    to 

    formatDateTime(utcNow(),'hh:mm''Singapore Standard Time')
     

    and the error states the locale time cannot be found. But i checked "Singapore Standard Time" is found in the table in Default Time Zones | Microsoft Learn

     

    So what have i typed wrongly ???

  • memento Profile Picture
    on at

    Hi @ekarim2020  @v-yetonggu-msft  any advice for the above questions on conversion in the time extraction ?

    Thanks

  • memento Profile Picture
    on at

    And how to get the text of the body from the email?

    I tried to find dynamic content 'text' but it's not available.

     

    As i use Body

    memento_0-1720605841560.png

    the output in excel turns out to be all HTML codes.

     

    any idea ?

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

    Hi @memento 

     

    Expression you have used is wrong - it should be like this 

     

    convertFromUtc(utcNow(),'Singapore Standard Time','hh:mm')
     
    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌


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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard