Hi Kranthi,
Thanks for the reply, Actually I want to copy all the attachments of the relevant applicant and application to the newly created employee, So I wanted to know where the code for copying the attachments from there to employee form can be implements. Please suggest me a solution.

I don't see any code that does the copy of attachments. You can use the \Classes\Docu\copy method to copy the attachments from applicant table to worker table. (for the best place to write your code, try debugging the methods i suggested)

Hi kranthi,
there is no functionality of copying the documents yet, it is a new customization but I want a help to suggest at which place can the copying code can be implemented such that after hiring a applicant as employee it copies the attachments. please do suggest.

Hi Kranthi,
First \Classes\HcmWorkerTransition\newHireHcmWorker is called then \Forms\HcmWorkerNewWorker\Methods\closeOk is called, which is best to place the code for copying attachments please suggest.

\Forms\HcmWorkerNewWorker\Designs\DesignList\OK\Methods\clicked In the above method the new Worker get created (by calling newHireHcmWorker), after that you can copy the documents from HRMApplication to HCMWorker (see example code below)

You can use \Classes\Docu\copy (or) \Classes\Docu\copyDocument based on your requirement.
Copy method will create new DocuRef but uses the same DocuValue. copyDocument will create new DocuRef and DocuValue (it copies and createdsnew files in case if there are any attachments).
Most of the case in AX the Copy method is used. (Example - copying documents from Purchase requisition line to purchase order line)