Pass File to Java Action

0
Hello all,My data model looks like this: I want to pass the both entities data to my java action.My page looks like this: On save button , I am calling a java action which is exposed as a microflow in which I want to send all these data.But when I add both entities as parameters to my microflow,it shows me error as: Please Help.Thanks in advance.
asked
2 answers
1

In your microflow only pass the Credentials parameter. Your first activity in the microflow will be a retrieve over association to get (a list of) filedocuments. If you are certain it's only one document, your next activity should be a list operation HEAD which will give you the FileDocument. Now you have your 2 parameters for your next activity, the java action

Good luck. 

answered
0

Hi, 

Check the below documents.

https://docs.mendix.com/refguide/java-actions

https://docs.mendix.com/howto/logic-business-rules/extending-your-application-with-custom-java

https://docs.mendix.com/refguide/java-programming

https://docs.mendix.com/refguide/java-action-call

 

answered