How to add attachment to a record and send the record for approval

Hi guys,

We got a request from customers that they wish to be able to attach a file when creating an absence registration so that the line manager can refer to when reviewing the record.

For this I add a MenuItemButton:Attachement to form HRMAbsenceRegistrationListPage. it works well in relation to attaching a file against the record. However, when transfering it for approval, I wouldn’t be abel to retrieve the file in approval form HRMAbsenceApproval. Do you know how to fix it?

Cheers

Which version of AX are you in? I believe Document handling is already available for this purpose. Is there any specific need for this customization?

It is AX 2012 R2 CU7. Can you tell me more about Document Handling? My understanding is that currently you are not able to attach a file to a absence registration on portal and client, but maybe I miss out something.