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 :
Microsoft Dynamics AX (Archived)

Add a file to attachments from code

(0) ShareShare
ReportReport
Posted on by

Hi guys,

Can anyone help me with attaching a file from code?

On HcmApplicant form I have a button to import excel file, the dialog appears, then user seeks for excel file.

Later I want to have ability to open that file from attachments.

I know I have to add a record in DocuRef table, but what else should I do?

Greetings.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Bashir Ahmad Profile Picture
    5,248 on at

    it may help to open a docuview document attached to a Purchase Requisition from a Purchase Order.

    stackoverflow.com/.../dynamics-ax-how-can-i-open-a-docuview-document-attached-to-a-purchase-requisiti

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Shafter

    Take a look to this post tech.alirazazaidi.com/document-attachment-through-x-code-dynamics-ax-2012-r3

    Practically, you have to create a record on DocuRef Table and link to the HcmApplicant record.

    Finally, using the standard Document Handling form you can press the Open button just to open the file with the "default" Windows program.

    That's it!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans