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 / How to save only certa...
Power Automate
Unanswered

How to save only certain attachments from outlook to sharepoint

(0) ShareShare
ReportReport
Posted on by 11

Hi all

I want to create a flow that save on my sharepoint just particular attachment that i receive (ie a file called PIPPOPIPPO.xlsx).
this is why a lot of mails i receive have a graphics in senders' signatures or they send me more then just one file required.


Anyway the request is simple: How to save ONLY CERTAIN ATTACHMENTS from outlook to sharepoint

 

thank you

raffaele

 

Categories:
I have the same question (0)
  • Mister_Shaik Profile Picture
    1,008 on at

    Hi @ironpink ,

     

    I'm assuming that you're having a flow that gets triggered when an email arrives in your/mailbox inbox with an attachment, and now you want to identify the useful files and save only them to the SharePoint.

     

    You can use a Filter action here to filter out all the attachments that match a provided identifier text and then use the output of this filter to save into a SharePoint,

    1. filter.PNG

     

    Let me know if you're having some different trigger or if my assumption is wrong.

     

    Hope this helps 🙂

     

    Kind Regards,

    Shaik Sha
    ________________________________________________________________________

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • ironpink Profile Picture
    11 on at

    hi @Mister_Shaik 

    filter works but it do not save the file in correct format.

    any suggestions?

     

    tx raffaele

     

    ironpink_1-1644171387544.png

     

    ironpink_0-1644171349939.png

     

     

  • Verified answer
    Mister_Shaik Profile Picture
    1,008 on at

    Hi @ironpink ,

     

    The "When a new email arrives (V3)" does not provide attachment content by default, you need to call another action inside the "Apply to each" loop to get the attachment content and then use that content to create the file.

    1. get file content.PNG

     

    Hope this helps to fix your issue 🙂

     

    Kind Regards,

    Shaik Sha
    ________________________________________________________________________

    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • ironpink Profile Picture
    11 on at

    hi @Mister_Shaik 

    one more question.

    how can I add the ORGINAL last saved date of the file to the name of the file? 

     

    as you can see i made a test sending myself few excel files but the file are saved with the date of the flow and not with the data when the file has been made.

     

    ironpink_0-1644406797958.png

     

    moreover, it seems that the file ha a new access date and creation data

    ironpink_2-1644407168934.png

     

    could you help me?

     

    thank you

    raffaele

     

     

  • Mister_Shaik Profile Picture
    1,008 on at

    Hi @ironpink ,

     

    Unfortunately you can't edit created/modified meta data in SharePoint. If you want to retain the created/modified meta data, then you can create new columns in the document library for that data and update them using the "Update file properties" action.

     

     

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard