Show/Hide Toolbars

Creates a shortcut or link to a document (file, folder, or existing shortcut) with a given unique key. The parentFolderUniqueKey defines the folder where the shortcut will be created. The unique key of the resulting shortcut (type of document record) is returned.

Code Snippet

protected DocumentRepository documentRepository;

//the first parameter, documentUniqueKey, identifies an existing document to create a link to

//the second parameter, parentFolderUniqueKey, identifies the folder where the shortcut will be created

String uniqueKey = documentRepository.createShortcut("DOCU_1451", "DOCU_1771");