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 :
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

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans