Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to delete E-mail attachments only.

(0) ShareShare
ReportReport
Posted on by

I need to know how to delete the attachments that get sent to our clients in CRM online 2011. We need and want the email itself as it is important business communications. But the email attachments (reference letters, Promo material) needs deleted as it is taking up lots of space.

*This post is locked for comments

  • Tim Loring Profile Picture
    Tim Loring 85 on at
    RE: How to delete E-mail attachments only.

    Hi Jason, Hope you're well.  I have imported LAT.WorkflowUtilities.Email(2.3.0.0) and looking to use 'Delete Attachment'.  Workflow I've created looks to execute correctly however doesn't delete the attachment.  Should this work for D365 CE ?

    Cheers

    Tim

  • Suggested answer
    Frank Lee Profile Picture
    Frank Lee 4,616 on at
    RE: How to delete E-mail attachments only.

    Reference this doc:

    community.dynamics.com/.../deleting-email-attachments-in-dynamics-crm-2016

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to delete E-mail attachments only.

    Hi, this plug-in does not work on dynamics 365, can you help me?

  • RE: How to delete E-mail attachments only.

    microsoftdynamicscrmusefulplugins.codeplex.com/.../620840  

    For CRM 2016

    Hope this help.. ...

  • RE: How to delete E-mail attachments only.

    microsoftdynamicscrmusefulplugins.codeplex.com/.../620840  

    For CRM 2016

    Hope this help..

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to delete E-mail attachments only.

    Jason, thank you for the custom workflow you created. I was able to import this workflow and run it on the view with old mails with attachments above a certain size.

    Only thing I can't get working is the "note", the one that states the attachment is detailed from the mail. I'm using this in a CRM 2015 / Outlook client and online.

    Just to help others hereby an how to of your workflow, if somethings wrong or not clear feel free to change.

    Step on how to use the “CRM 2011 - 2013 and 2015 Internal Email Helpers” custom workflow

    -       Download the zip file from https://crm2011internalemail.codeplex.com/ or https://crmemailworkflowutilities.codeplex.com/ if you need the updated 2015 version .

    -       Import the zip file in your sollutions  (settings – solutions – import)

    • Don’t forget to publish

    -       Next go to customizations (settings – customizations – customize the system)

    -       Go to processes (components – Processes)

    -       Create a new workflow

    • Click ‘new’
    • Give it a processname
    • Select a category = workflow
    • Entity = email
    • Activate = proces (or what applies to your system)
    • Under Available to Run, select On demand. (or what applies to your system, if you want to schedule do not select on demand)
    • Select what applies (user, organisation) organisation was ok for us
    • Click Add Step, and then click “LAT workflow utilities: delete email attachments”
    • Configure the step – show properties
      • Add with the form assistant in the field for “email with attachments to remove – {emailmessage(Email)} – the value in the field should show in yellow color if done correctly
      • The value for “delete >= than X Bytes is set in bytes – so 5MB looks like 5000000
      • Add Delete Notice As Note – choose as you like.
    • Save and close
    • Save the workflow and publish

    -       Go to advanced find and use a previously made view with old emails with an attachment larger than a x size (http://technet.microsoft.com/en-us/library/dn683569.aspx )

    -       run in the results the workflow on demand on the selected emails or on all emails.

  • Suggested answer
    jlattimer Profile Picture
    jlattimer 24,558 on at
    RE: How to delete E-mail attachments only.

    I've created a custom workflow activity you can use to delete the attachments from emails while retaining the message itself.

    You can download it from CodePlex: crm2011internalemail.codeplex.com

  • mitu5747 Profile Picture
    mitu5747 on at
    RE: How to delete E-mail attachments only.

    I don't get that "Remove Attachment " button and I don't want to make the workflow nor the script. Is there any fix or alternative for it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: How to delete E-mail attachments only.

    Great keep us up to date :-)

  • KevinDavisPE Profile Picture
    KevinDavisPE on at
    Re: How to delete E-mail attachments only.

    Sven, thanks. This is the only way that anyone or MS can figure out to delete those pesky attachments and not the actual e-mail. It is cumbersome but at, least possible. I beleive there is a way with the SDK. See www.resultondemand.nl/.../918c0b7e-2850-40c5-8333-5dad6d83b850.htm (how to delete e-mail attachments) Our developer is working on that angle.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans