web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Download all attachments of an entity as a ZIP file

(0) ShareShare
ReportReport
Posted on by 105

<<Updated Post>>

We have requirement to download all the attachments of an custom entity into a zip file, on click of ribbon button.

What are the available options here?

1. Do we have any third party libraries available for this

2. If custom code then, as plugin has 2min timeout, does that have any effect of the attachments file size?? size of all attachments could vary from 10 MB to 50MB also..

We are using CRM 365 Online version..

Any help greatly appreciated!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Clem Profile Picture
    2,541 on at

    Hello,

    You won't be able to do that with a plugin or workflow (except if you push this to a sharepoint related instance).

    I would go for a call to a webservice which will take care of the retrieve of the attachments and then package it and retrieve the zip file as result.

    Not tested but that's just an idea

    Clément

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    You can build a console application that will download all attachments and then zip them up.

    You would retrieve all the attachments in a collection, and download each one independently and store it on the file system. You will then zip all file using the System.IO.Compression.ZipFile class:

    docs.microsoft.com/.../system.io.compression.zipfile

    You can then go ahead and delete the origiginal files.

    Hope this helps.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans