I am trying to create a document inside a plugin code and write data into it. Could someone please help.
Regards,
Soujanya
Discussion posts and replies are publicly visible
Long documentId = 123L; String filePath = cs.getInternalFilename(cs.getVersion(documentId,ContentConstants.VERSION_CURRENT)); /* you will get something like, C:\appian\_admin\accdocs1\1\10000001.pdf */ File jAppianFile = new File(filePath);
Thanks,
Raghu
Hi Pradeep,
You have to upload document using a!fileUploadField. You can save Document Id in local variable to process it further.
Please have a look at following code.
a!fileUploadField( label: "File Upload", labelPosition: "ABOVE", saveInto: { local!docId }, validations: {} )