Search through blog..

Wednesday, February 13, 2013

Document management in AX 2012

In Dynamics Ax 2012, you can attach documents to specific records. This can be done by clicking the "Attachments" button on the Ribbon for many forms. Below is a screen capture for Workers form:

The picture isn't clear, this is just to give an idea where you should possibly look for Attaments button.
 
But before you go ahead with Document attachments, you need to setup few things listed below:
  1. Activate Document management
  2. Set up Archive Directory - place to store the documents
  3. Create required Document types
  4. Use Document management to attach files to records in any Dynamics Ax Form.

Activate Document Management:

Complete the following procedure to activate document management.
  1. Click File > Tools > Options
  2. Click General and then expand the Miscellaneous FastTab. 
  3. Select the Document handling active check box. 
  4. Select Show attachment status to highlight the Document handling control on the status bar
    and Select Action Pane when you select a record that has documents references.


Set up document Archive Directory:
Complete the following procedure to set default document archive directory.
  1. Click Organization administration > Setup > Document management > Document management parameters.
  2. In the General area of the form, in the Archive directory field, enter the path to the archive directory.
  3. Click Number sequences, and select the ID reference.
  4. In the Number sequence code field, select the number sequence code to use for naming your documents.

Note: You can select an alternative archive directory for each document type in the Document types form. If you change the archive for your documents, existing document references will not work unless you have already copied all existing documents to the new archive.

Create required Document types:

The document can be attached if and only if the file is of any type that is set up in the Document types form.

Follow the below steps to create a new document type:
  1. Click Organization administration > Setup > Document management > Document types. 
  2. Press CTRL+N to create a new document type.
    or you can click the "New" button.
  3. In the Type field, enter a code for the document type.
    This Type field is shown while adding documents to records, so recommended to have a descriptive name here.
  4. In the Name field, type a descriptive name for the document type.
    More description if needed.
  5. In the Class field, select the type of document to create.
    To specify which class do you want the new document type to fall in.
  6. In the Group field, select a group for the document type.
    Choose among the pre-defined groups avaliable.
  7. Close the form to save your changes.

 

Using Document management:
You can actually perform any of the below actions:
  1. Create a new document
  2. Create a Copy of an existing document
  3. Copy to clipboard to copy the document elsewhere in the System
Below are examples of how to do it, and are performed on Prospect details form (Sales and marketing module)

Create a document
  1. Click Sales and marketing > Common > Prospects > All prospects.
  2. Select the prospect record that you want to create an attachment for or attach a document to.
  3. Click Attachments to open the form.
  4. Press CTRL+N to create a new document.
  5. Select the document type in the Documents form and then click OK.
Note: The document icon in the Prospects form changes from an empty sheet of paper to a book. This indicates that there are documents attached to the prospect record.
 
You can create documents for other users by selecting their user names from the list in the Author field. You can also transfer a document to another author in the Author field.

Copy a document
  1. Click Sales and marketing > Common > Prospects > All prospects.
  2. In the Prospects form, select the prospect record from which you want to copy a document.
  3. Click Attachments to open the Documents form.
    Verify that the document attached is a type that can be opened, such as a Microsoft Word file type or a Microsoft Excel worksheet.
  4. Click Copy.
  5. In the Description field, update the description of the newly copied document.
Copy a document to the Clipboard
  1. Click Sales and marketing > Common > Prospects > All prospects.
  2. In the Prospects form, select the prospect record that has the document that you want to copy to the clip board.
  3. Click Attachments to open the Documents form.
  4. Click Copy to clipboard. The active document is now copied to the Clipboard and can be pasted into any file that accepts text (such as email or a document).
  5. Press CTRL+V to paste the copied document into the destination.
Note: The copy-and-paste procedure creates a copy of the selected document in the file system but does not maintain any connection to the document management system of Microsoft Dynamics AX. No new document identification is created, nor is the copied document attached to any record.

Information collected from: http://technet.microsoft.com/en-us/library/aa549988.aspx

11 comments:

anil said...

nice explanation..Ajit
very useful for developers...thanks

Ajit said...

Thank you Anil..

Anonymous said...

Excellent! Exactly what I was looking for.

Unknown said...


nice Article and thank you for all support us . please can you send me explanation for how to create and use product builder in ax 2012 .

if you want to contact me my email is

sodokey@gmail.com

many thanks for you your response highly APPROACHED

JC said...

I'm having some issues attaching a document on a network through Enterprise Portal. Any other settings for EP that are required?

JC said...

I am having issues attaching a document on a network to a Purchase Order through Enterprise Portal. I keep getting a message saying folder does not exist or network not available. These locations work form the AX client when saving documents. Any other settings required for EP?

Jason

Unknown said...

Thanks Working.

Unknown said...

Is it possible to activate “Show attachment status” as automatically for to all users

Ajit said...

@Mohamad and JC... sorry, maybe it is too late to answer your queries. Hope you fixed it already.
/Ajit.

Ajit said...

Srikanth.. Also a little late response for you.
There is no Standard functionality to update "Show attachment status" for all the users, but you can always write a quick job.
Wrote the below one for you... Hope this helps.
static void AjGu_UpdateDocuToolbarButActive(Args _args)
{
SysUserInfo userInfo;
int check=0;
;
ttsbegin;
while select forupdate userInfo where userInfo.docuToolbarButtonActive == false
{
if(userinfo.id)
{
userInfo.docuToolbarButtonActive = true;
check++;
}
userInfo.update();
}
ttsCommit;
info(strFmt("No of rows updated: %1", check));
}

siyer123 said...

Hello,
One of user is unable to edit the description in document handling form. He is assigned as system user in the system.
What should I do?