Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ET4mBQKVIXksd7vAOlt2Q6
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 4 Sep 2017 14:36:03 by 4

Hello,

 

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

  • ML-05020844-0 Profile Picture
    2 on 05 Feb 2025 at 08:48:18
    Copy email attachment to OneDrive, add link to the attachment and delete attachment from email
    @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.
  • eldo Profile Picture
    2 on 21 Mar 2024 at 12:47:29
    Re: Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

    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 

  • CCSchreiber Profile Picture
    2 on 23 Oct 2023 at 23:01:03
    Re: Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

    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.

  • Tony_Armstrong Profile Picture
    2 on 09 Jun 2022 at 20:09:37
    Re: Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

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

  • MageshP Profile Picture
    16 on 23 Nov 2021 at 14:09:08
    Re: Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

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

  • melim Profile Picture
    on 11 Sep 2017 at 16:03:28
    Re: Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

    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.

  • Shailu Profile Picture
    4 on 10 Sep 2017 at 13:57:41
    Re: Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

    Hello,

     

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

    Thanks for the answer.

     

    Shay

  • Verified answer
    melim Profile Picture
    on 05 Sep 2017 at 01:18:36
    Re: Copy email attachment to OneDrive, add link to the attachment and delete attachment from email

    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.

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