how to add the file from external URL

0
Hi,   I have an attribute that stores a certain a URL in it as a string. I need to download the the external URL contents as a pdf, how do I achieve ?   Thanks in advance.   Sample Url stored in string attribute : https://www.isatravelonline.com:9088/api/PrintPolicy/Print?PolicyCode=0000001&ProdCode=0&beneficiaryCode=1&ShowTotal=1
asked
2 answers
2

The Community Commons module in the Marketplace has a Java Action called StoreURLToFileDocument that you can use to download a file from a URL and store it as a Mendix FileDocument.

https://docs.mendix.com/appstore/modules/community-commons-function-library/#33-files

I hope this helps.
 

answered
0

Hello,

I believe you can use the Java action CommunityCommons.StringToFile and then generate PDF action and download the file using download file activity in a m/f

I found some more info in this post as well

https://forum.mendix.com/link/space/microflows/questions/99183

 

Hope this helps!

answered