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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How do you import an attachment into dynamics 365 F&O using c#?

(0) ShareShare
ReportReport
Posted on by

I am trying upload a file to Application form in human resources module on the cloud hosted environment . I saw that the files is being stored on azure blob storage so I tried uploading the file from c# code 

directly to storage . how do I connect that file with the application record? Am I doing it wrong?

  • Suggested answer
    nmaenpaa Profile Picture
    101,174 Moderator on at

    I don't think that it's possible. Instead you should send the attachment to D365 and let D365 upload it in the storage.

    Out of the box there are a couple of data entities which can be used to upload attachment. But there's no entity for your requirement. You would need to develop your own entity, or a custom service.

  • customized screen Profile Picture
    on at

    Thanks for the quick response Nikolaos.

    can you suggest a couple of data entities that can help? does DocurefEntity work? what fields are the most important in the entity? can you give me an example of a custom service?

  • Suggested answer
    nmaenpaa Profile Picture
    101,174 Moderator on at

    Hi Ayham,

    for the entities, just go to Data entities form and filter the Entity field by *Attachment*.

    And for the custom service, I would just use the web search if I needed to find an example for you. But to save time, I suggest you try this search directly: www.google.com/search

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi,

    you cannot upload a document to Azure storage and connect it to record in D365FO. Please have a look at this: d365foe.blogspot.com/.../how-to-mass-update-product-images-in.html

    In this blog, I have used OOB entity to import Image as an attachment. you will need to create a custom entity based on your requirement. To create a custom entity have look at LedgerJournalAttachmentsEntity

    It uses docuRefEntity. You will also need to add code to PostLoad method. The same entity can be used for reference. 

    pastedimage1616415045200v1.png

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 274 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 219

#3
Subra Profile Picture

Subra 202 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans