Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Export attachments

(0) ShareShare
ReportReport
Posted on by 10

We are using Dynamic AX and we want to export all the existing attachments which stored in AX/Microsoft blob storage. First, let me explain the current situation: 

AX has a backend SQL database that contains all the attachments metadata

there is a front entity data structure that you can use OData connection to it but it gives you the entities data (not the files)

there is a Export job in app that you can use to extract the entities data and some attachments but based on my experience, its not a efficient tool, its slow, has lots of error and wont give you all the attachments  

(just FYI, there is around 4400 entities and 62000 attachments and I need to extract them, please dont ask why you need to extract and etc)

so my main question: How we can extract them all in a efficient way (means reliable, without error and make sure we will get everything)??

The possible solutions can be:

1- use the customized app export job

2- use Data Factory to generate the download URL (File GUID+Token)

3- use VS to generate the package and connect to AOT and download the files

 

Any experience, thoughts?

  • Pouyan Profile Picture
    Pouyan 10 on at
    RE: Export attachments

    Thanks, make sense. Could you send me your C# code? I cant find a good one.

    I think I need to generate the token part and use GUID to call the files

  • IgDmitrov Profile Picture
    IgDmitrov 25 on at
    RE: Export attachments

    Hi! Pouyan,

    You can select file name, id and link from AX database this is table - DocuValue.

    After that you can write client (e.g. Console C# application) and download these files.

    I did it in the old version of Dynamics Ax 2009.

    It's my suggestion.

  • huijij Profile Picture
    huijij 19,811 on at
    RE: Export attachments

    Moved to AX Forum.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans