How to get current project directory path using a microflow or java action?
I have a file which I have added in project_directory/resources folder. I want to access that file using FileDocumentFromFile java action. For this to work I need to pass in full file path of the file that I want to get contents of. Providing relative paths isn’t working but when absolute path is provided then it works. Is there any way to get the project directory path via a microflow or javaaction ?
You might want to use a JavaAction to get the resource path. Have a look at the package com.mendix.cor.conf, Interface Configuration, method getResourcesPath():