I have a requirement where i need to create a excel with some content.
I wrote some java code to create the excel, now i want that excel to be store in Knowledge Center.
I need help to know how can i write create a document of type xlsx in appian and write the data to that document and store in Knowledge Center.
Thanks
Pradeep
Discussion posts and replies are publicly visible
When creating the document you can use new Document(folderId, documentName, fileExtension) which you can pass in "xlsx" as the fileExtension parameter.
new Document(folderId, documentName, fileExtension)
fileExtension
You could also do it individually by using
Document d = new Document();d.setName(name);d.setExtension("xlsx");d.setParent(folderId);
You could then (after creating the Appian document) use a FileOutputStream to get your Excel data into the document (depending on the library you're using).