I’m trying to upload a file and then use that file in a REST API call. First, I upload my file into an entity that has a generalization of System.FileDocument then I call a microflow with this entity as its parameter. When I go to pass it into the “Call REST service” action as form data there isn’t an option for it. The documentation here https://docs.mendix.com/refguide/call-rest-action#4-3-form-data says that I should be able to do this, but there is no option to use form data. This is in Mendix Studio Pro 8.0.0.
Hi Kyle, you need to convert the physical file document into binary data in order to pass that as the body. The Community Commons module in the App Store has Java actions build to turn File Documents into binary strings.
call enterprise interface
Request tab select “Binary for the entire request”，content is your file class/contents prop