I am trying to create shortcut or link of a document in Alfresco using apache-chemistry. Using below code I am trying to create link or shortcut
properties = new HashMap<String, Object>();
properties.put(PropertyIds.BASE_TYPE_ID, BaseTypeId.CMIS_ITEM.value());
// define a name and a description for the link
properties.put(PropertyIds.NAME, "Name_for_the.link");
properties.put("cmis:description", "test create link");
properties.put(PropertyIds.OBJECT_TYPE_ID, "I:app:filelink");
//define the destination node reference
properties.put("cm:destination", "workspace://SpacesStore/41f43936-31c1-432e-bb33-438c05bcb26c");
// choose a folder where the link is to be create
Folder destinationFolder = (Folder) session.getObjectByPath("/path/to/the/destination/folder");
session.createItem(properties, destinationFolder);
Now problem is that I am able to create link from above code but whenever I clicked on link it showing me
The item cannot be found. Either you do not have permissions to view the item, it has been removed or it never existed.