XSOAR - Send CSV

cancel
Showing results for 
Search instead for 
Did you mean: 

XSOAR - Send CSV

L1 Bithead

Hello,

 

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?

4 REPLIES 4

L3 Networker

Hello

 

Did you tried to use ExportToCsv task?

https://xsoar.pan.dev/docs/reference/scripts/export-to-csv

regards

roger

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.

Hi

 

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...

  • first part is https://<demisto  machine name> 
  • second part is /entry/download/
  • and third part is File.EntryID

 

so the url is like this, if you would use it in an other task:

https://demisto/entry/Download/${File.EntryID}

 

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?

regards

roger

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.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!