I think you're facing the same issues as I did. I stringify the whole array, so the list shows like this:

Then I made an automation that transforms from this "stringified array" to a "line break list", that is the format expected for the external platform to be consumed:
'''
Este script transforma una string que antes era un array a un string con salto de linea de cada elemento:
from: [‘1’,‘2’,‘n’, …]
to:
1
2
n
…
- Para utilizar este script se deben agregar 2 argumentos: input_key y output_key.
- input_key es un array transformado a string, para eso se puede usar el automation "Stringify"
autor:
'''
input_key = demisto.args().get('input_key')
output_key = demisto.args().get('output_key')
raw_string = demisto.get(demisto.context(), input_key)
if not raw_string:
return_error(f"No se encontró valor en el contexto para la key '{input_key}'.")
try:
ip_list = json.loads(raw_string)
if not isinstance(ip_list, list):
return_error(f"El valor en '{input_key}' no es una lista válida.")
except Exception as e:
return_error(f"Error al parsear string como lista JSON: {e}")
ip_output = '\n'.join(ip_list)
demisto.setContext(output_key, ip_output)
return_results(f"Se guardó la lista en el contexto bajo la key '{output_key}'.")
This expects 2 inputs: the key with the "stringified array" and an output key. For example, mine was "array-a-string" and the other "string-a-lista", which after execution, it looks like this in the context:

After that, you get the content of your file in that output key, so you can use FileCreateAndUploadV2 and then upload your blob:
