I am trying write a file (on my local computer) into a System.fileDocument within a Microflow. I am using the communitycommons FileDocumentFromFile java call. There are 2 arguments: (a) file - for this I have a string eg 'C:\Users\ray\Desktop\sample.doc' and (b) fileDocument - for this I have a System.FileDocument object name eg $LibraryDocs. This causes an error at run time. I am happy that the System.FileDocument value is OK as I use this successfully to write other data, but I am not sure about the correct syntax for the file ? Any assistance gratefully received.
Edit-Solution Finally solved it - there are certain directories where access is allowed eg (%PROJECTDEPLOYMENTDIR%/data/tmp/). placing my files in a subdirectory below means they are accessible and can be written to the System.fileDocument.