08-31-2021 06:24 AM
I am trying to send a csv in a post request using the "http request" built-in task, but the File parameter seems to be missing. What is the best way to send a csv file in an api post from XSOAR?
08-31-2021 06:38 AM
Did you tried to use ExportToCsv task?
08-31-2021 06:42 AM
Thanks for the reply, yes I used the export-to-csv task to get the data into a csv format, but that's about all the task seems to do. Now that I have the file in csv format, I need a way to send it in a post request to another api.
08-31-2021 06:58 AM
I do see you problem, you need first to donwload the file to continue the work/tasks.
I did a little test on my side and saw following:
The download link is cutted in different sections...
so the url is like this, if you would use it in an other task:
Be carefull, you migth not use the URL above if you send it in an E-Mail, because you need to login first into demisto...
Could you please try it out?
08-31-2021 07:20 AM
The issue with sending the download URL is that a team will be using the file that does not have access to XSOAR. So I need to be able to send the csv directly.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!