Is it possible to provide a link to a file generated by my application in the mendix cloud?
0
We have the following issue: Our application generates an XML which a 3rd party (a partner of our client who uses this application) needs to feed their system. They would like a direct link to download said XML file. They don't seem to want a webservice, but just a direct link to the file. (So for example https://testportal.mendixcloud.com/TestFile.xml). Would something like this be possible or should we try to solve this in another way They want: A http response with the actual xml data I've tried to publish a webservice but they don't seem to be able to consume this, and therefore want the above solution, is something like this possible? Edit: Create a rest service, however something strange seems to go on, there seems to be a forward slash missing in the link? When clicking on this link nothing happens, however when i manually ad the forward slash after the .com it does work?
asked
Niels van de Sande
2 answers
0
If you store your exported XML as a FileDocument (one of the options in the Export XML microflow action), you can then access it through a link like http://localhost:8080/file?fileID=nnn when nnn is the fileID of the FileDocument
answered
David Sanders
0
Could you then not solve it with the deeplink module? So create a custom link with the id of the filedocument. If they click on it they go with a deeplink to a microflow that retrieves the filedocument and does a download?