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 / Automatically move Out...
Power Automate
Unanswered

Automatically move Outlook e-mail attachment to SharePoint folder

(0) ShareShare
ReportReport
Posted on by 2
I want to automatically move an Outlook file attachment to a SharePoint folder once a day. My issue is that the file name (date portion) changes each day (ex. "....."_2024-08-10-07-05-10.xls; "....."_2024-08-10-07-05-11.xls; "....."_2024-08-10-07-05-12.xls; etc.). My "Power Automate Flow" keeps failing, I believe because of the date issue.
 
Looking for help and suggestions.
 
James
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Please post a screenshot of your flow
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at
    If you use the Retrieve email messages from Outlook action to retrieve the messages and save the attachments, you should have a list of emails stored in a variable in your flow. The variable by default is %RetrievedEmails%. You can then build a loop that processes those emails one by one. If, for example, you use a For each loop, each message will then be stored in %CurrentItem% for each iteration of your loop. Then, this %CurrentItem% variable will be of a special variable type called "Outlook mail message", which has a property called Attachments. So, using %CurrentItem.Attachments% you can access the list of files that were saved from this particular message. You can then use whatever actions you use to move them to SharePoint.

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