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 / Last one day Email att...
Power Automate
Unanswered

Last one day Email attachment save in OneDrive

(0) ShareShare
ReportReport
Posted on by 2

Hi Folks,

We got a request where we need to save all the email attachments in OneDrive, I have create this flow, but there is one condition along with this:

We want flow to be triggered at 6PM everyday, and we want every email, which we have received from 6:01PM till 6PM today, only those attachment should get saved, so when flow will trigger, it'll search every email in Inbox which we have received after 6PM yesterday and save it's attachment in OneDrive.

Any help how we can achieve this.

 

Thank you!

Categories:
I have the same question (0)
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @rsinha ,

     

    Do you want to save email attachments for a certain time interval?
    You can try to use condition to compare the time of receiving the mail, and save the mail when the time of receiving the mail is within this time interval.
    I have a test for your reference.
    In my scenario I only need emails received from 6:00PM to 7:00PM every day.

     

     

    formatDateTime(convertFromUtc(concat(split(triggerOutputs()?['body/receivedDateTime'],'+')[0],'Z'),'Your time zone'),'HH:mm')

     

    vdezhilimsft_0-1671525718461.png

     

    Best Regards,

    Dezhi

  • rsinha Profile Picture
    2 on at

    Yes @v-dezhili-msft 
    I want to store the email attachment of last 24 hours. Flow will trigger at 6PM, and it should pick the emails which were received in last 24 hours, mean 6 PM yesterday to 6 PM today. I did try your solution, but I am not able to replicate properly here. I am getting following error:

    Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#split for usage details.'.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard