Hi Zia Sayyad![](file?guid=19703248378501914)
Previous logic of mine includes, importing an excel file for Details object.
After successfully imported the data is stored in Details object
Process for the logic string to file
- Download community commons from Mendix.
- Create a object generalised to file document. – In my case its DetailsFile, which is used to hold the file.
![](file?guid=19703248378502140)
- Create a string variable. (tempVariable)
- Iterate the object in which the data exist and form your string. Mentioned below
![](file?guid=19703248378502219)
- Create the object – which is used to hold the file (In my case its DetailsFile)
- Add member Name and provide the file name.
- This file name can be anything, it will reflect when you actually download the file
![](file?guid=19703248378502387)
- Add StringToFile java action which is there in community commons and configuration look as below
- Value = The string variable name
- Destination = The object which is used to hold the file
- Encoding = by default its UTF_8
![](file?guid=19703248378502497)
- Add download activity.
- This activity will the file object.
![](file?guid=19703248378502556)
- Execute the flow.
All set to for your requirement.
Hope it helps!!!