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 :
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.
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,157 Most Valuable Professional on at
    Hello, maybe this can help:
    Dynamics 365 Business Central: How to bulk export/download attachments (Downloading multiple attachments via zip file) – Customization
  • Community member 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans