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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Incoming Document Attachment Content Extraction

(0) ShareShare
ReportReport
Posted on by 2
Hi,
 
I have a dynamics 365 backup file, I was able to restore in a local mssql server instance, I have access to all columns including the `Incoming Document Attachment` one, I want to use Javascript to get all the document records and create local copies of the pdf files, I am using the official mssql server client and the `Content` column is converted to a buffer that I can use to create the files but when I tried to open the file I get errors related to the file being unusable, I would like to know if there is an special encoding key or decryption key I need to get to generate these files, it is my first time working with dynamics and I have no idea how to proceed.
 
Note: I also tried to copy the text content (hex encoded string) and I used Javascript to get a buffer and create the file but no luck also, I was not able to open the file.
 
Thanks in advance for the help.
  • Gerardo Rentería García Profile Picture
    27,623 Super User 2026 Season 2 on at
    Hello, maybe this can help:
    Dynamics 365 Business Central: How to bulk export/download attachments (Downloading multiple attachments via zip file) – Customization
  • CU27040942-1 Profile Picture
    2 on at
    Hey,gdrenteria, thanks for your answer, unfortunately it does not help me because I am doing this outside of the dynamics environment, in my case it is a nodejs script but thanks for your help, I suspect that dynamic internally does something to the file encoding, I believe thats what I need to figure out

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 631 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 409 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 222 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans