Hi there,
I want to upload a number of documents to Studio and store them int the repository without attaching to a process as yet (that will come later).
I have the following code in a java program that seems to work but when I open studio there is nothing in the repository.
What am I missing?
public static void createDocumentInRepository() { DocumentBuilder docToBuild = new DocumentBuilder();
docToBuild.createNewInstance("Test Doc", true);
docToBuild.setContentMimeType("text/docx");
docToBuild.setDescription("Test Doc");
docToBuild.setFileName("C:\\Users\\user\\Desktop\\test doc.docx");
// docToBuild.setURL(String documentUrl)
docToBuild.done() ;
}