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 / Copy email attachment ...
Power Automate
Answered

Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I want to copy email attachment to OneDrive, add link to the attachment in the email and delete attachment from email.

Categories:
I have the same question (0)
  • Verified answer
    melim Profile Picture
    Microsoft Employee on at

    Here is a template that saves Office 365 Outlook attachments to OneDrive for Business: Save Office 365 email attachments to OneDrive for Business.

     

    You an extend this template to take the link from OneDrive For Business and store it somewhere, like a Sharepoint list.  Unfortunately there is no way to edit an email with our Outlook connector.

  • Shailu Profile Picture
    4 on at

    Hello,

     

    I was hoping I can shink may mailbox like that - but sadly I undersatnd I can't.

    Thanks for the answer.

     

    Shay

  • melim Profile Picture
    Microsoft Employee on at

    If you want to shrink your mailbox, you can delete the email with the Outlook connector. But there is not a way to delete the attachment and keep the email.

  • MageshP Profile Picture
    16 on at

    I'm looking for solution to this topic. Has anything changed since it's been 4 years?

  • Tony_Armstrong Profile Picture
    2 on at

    The only way I thinks this can be done, it's to forward the email to your inbox without attachments and delete the original

  • CCSchreiber Profile Picture
    2 on at

    You can create a macro with VBA so with one click it saves the email attachment(s) to a folder you choose, deletes the original attachments from the email (but not the email message), and adds a hyperlink to find the attachment right to the original email which remains in your Outlook.   I've got it working pretty good, except if I run the macro on multiple emails it adds the hyperlink list of ALL removed attachments to ALL emails.  I need it to only list the attachments deleted from each email.

  • eldo Profile Picture
    2 on at

    Using the Microsoft Graph API , 

    I did created a Module , which reads the emails on the Office 365 email boxes ( Specific folders )

    and to upload the attachments to One drive Folder + and to remove the same from the Mails (Delete) after attaching  link to  every specific  file  into the email body (

    because of the huge attachments are replaced with few bytes of link ,  Mail box size will be freed up drastically   so as no requirements  to delete or archive mails 

    Effectively the mailbox capacity is extended with Huge sized Onedrive space - 

     

    The users dos not have any inconvenience in opening attachments  ,  they get mails processed faster , feels better

     

    All Uses standard functions and process 

    All 

  • ML-05020844-0 Profile Picture
    2 on at
    @eldo would it be possible to share the source of your application. We also would like to save email's attachement to a Onedrive/folder and in the mail, replace the attachement by a link to the location where it was saved.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard