Hi masters.
I am new with KM. I have a webdynpro application that needs to create folder and save files in the km repository, the files upload are already ready and working very well, now I´m working to save this upload files on km repository.
I am using the following code but it doesn´t work, could anyone help me please ?
String resPath = C_DIRETORIO; IResourceContext rContext = ResourceFactory.getInstance().getServiceContext(C_USER); RID rid = RID.getRID(resPath); ICollection kmCollection = (ICollection) ResourceFactory.getInstance().getResource(rid, rContext); ICollection folderCollection = kmCollection.createCollection(rfcNrDocNovo, null);
When I debug this code, I see that the object kmCollection is null