Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Incoming Document Attachment Content Extraction

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.
Categories:
  • Incoming Document Attachment Content Extraction
    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
  • gdrenteria Profile Picture
    gdrenteria 12,063 Most Valuable Professional on at
    Incoming Document Attachment Content Extraction
    Hello, maybe this can help:
    Dynamics 365 Business Central: How to bulk export/download attachments (Downloading multiple attachments via zip file) – Customization

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans