Skip to Content

It's possible to Export .csv files to HotFolder

I have a question regarding upload files to Hotfolder?

We have developed a cronjob to perform a flexible search on some entities and the result is included in a .csv file. The difficulty lies in being able to get this file and send this csv to a specific directory in the hotfolder so that it is available to another sector of the company. Is it possible to carry out this activity? Where can I get documentation or even a sample code so I can do this coding?

I am grateful for the help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 04, 2020 at 08:53 AM

    HI @Kleber Araujo

    Yes this is possible. So you have to create CSV data as per agreed header. TO generate csv you need to use some API as this is simple java implementation. Also you can refer sample reference: below link.

    CSV Generation sample code

    Also to copy or transfer this file to next location i.e hotfolder assuming S3 bucket. Please see below link:

    Copy file to S3

    If it is same server probably only File API will work to copy this file to specified location so it depends on server type whether it is linux or windows but only little syntax will differ in terms of path.

    Copy file to a location

    Also note that this is custom requirement so you have develop your own but you can refer step by step like create con job, create CSV file, Copy same file to hotfolder location.

    I hope this will help you.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.