Convert JSON result to CSV and ADD csv file as attachment on the case wall

Convert JSON result to CSV and ADD csv file as attachment on the case wall

 

Solved Solved
0 10 439
1 ACCEPTED SOLUTION

Hi @vanitharaj1208 ,

I had also created a playbook to convert json to csv and attaching csv file to case wall as below:

1. Used 'CSV - Save Json To CSV' to get the json object in csv file. This action is available in CSV integration from marketplace.

2. Used 'FileUtilities - Get Files as Base64' action to convert this csv file to base64 strings.

3. Used 'FileUtilities - Add Attachment' action and provided base64 blob of 'FileUtilities - Get Files as Base64 json results' and in Type provided .csv file type to attach csv file to case wall.

View solution in original post

10 REPLIES 10

i tired with same solution, how to i access that file location where does it store ..../tmp/filename 

 

did u try ?

i had build custom action to convert json to csv then i encode csv to base64 and finally passed base64 blob as input to attachment action from fileutils

Hi @vanitharaj1208 ,

I had also created a playbook to convert json to csv and attaching csv file to case wall as below:

1. Used 'CSV - Save Json To CSV' to get the json object in csv file. This action is available in CSV integration from marketplace.

2. Used 'FileUtilities - Get Files as Base64' action to convert this csv file to base64 strings.

3. Used 'FileUtilities - Add Attachment' action and provided base64 blob of 'FileUtilities - Get Files as Base64 json results' and in Type provided .csv file type to attach csv file to case wall.

Ill Check and Reply ... Thank you

It working and i have tested. 

@VictorSOAR 

Can I add multiple JSON results into the same CSV file?

single as of now 

Has this ever been updated to work with multiple JSON results?

yes i have worked with multiple json recently