Skip to main content

Notifications

Community site session details

Community site session details

Session Id : WsGjXExAojqqd3GWRmgs2z
Power Automate - Building Flows
Answered

How to save only certain attachments from outlook to sharepoint

Like (0) ShareShare
ReportReport
Posted on 4 Feb 2022 18:26:22 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

 

  • Mister_Shaik Profile Picture
    1,006 on 09 Feb 2022 at 14:22:06
    Re: How to save only certain attachments from outlook to sharepoint

    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.

     

     

  • ironpink Profile Picture
    11 on 09 Feb 2022 at 11:46:34
    Re: How to save only certain attachments from outlook to sharepoint

    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

     

     

  • Verified answer
    Mister_Shaik Profile Picture
    1,006 on 07 Feb 2022 at 04:37:12
    Re: How to save only certain attachments from outlook to sharepoint

    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 06 Feb 2022 at 18:16:48
    Re: How to save only certain attachments from outlook to sharepoint

    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

     

     

  • Mister_Shaik Profile Picture
    1,006 on 04 Feb 2022 at 18:36:32
    Re: How to save only certain attachments from outlook to sharepoint

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started