web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans