If you want documents to automatically be attached to objects based on keytype map criteria, you must create a folder associated with a class. If a document matches the keytype map criteria associated with a folder, the document will automatically be placed in the appropriate folder on the object's Documents tab/dialog box or embedded within a view.
Example: If you associate a keytype map to a folder that maps a Vendor Name attribute in the Vendors WorkView class to be equal to the Vendor keyword type in the VND-Invoice OnBase document type, every time the attribute and keyword type values match, the matching document will automatically be attached to the matching object.
To configure a dynamic folder for a class: