DataJet
Search…
⌃K

content

Lets consider following code for HTTP task:
{% capture csv_report %}
order_id, total
#121, 220
#122, 140
{% endcapture %}
{% json upload_options %}
{
"fileName": "report.csv",
"content": {{csv_report | strip | json }},
"public": false
}
{% endjson %}
{% assign file_result = upload_options | file %}
With following code your file will be transferred from url to your storage. Additionally file_result will contain a url of the report.
Last modified 1yr ago