DataJet
Search…
Welcome to DataJet
Tasks
Introduction
Blank
OOTB
Creating a custom task
Hooks
Introduction
Liquid
Introduction
Tags
Filters
apply
base64_decode
base64_encode
concat
encodeURI
email
file
multipart
url
content
graphql
http
in_timezone
log
parse
push
rest
time_subtract
time_add
run
Misc
Functions
Variables
Examples
Processing user submitted forms
Create orders from csv file
Custom shipping rates
Send order data to Zapier
Get variant inventory level (frontend)
Powered By
GitBook
content
Lets consider following code for HTTP task:
1
{
%
capture csv_report
%
}
2
order_id
,
total
3
#
121
,
220
4
#
122
,
140
5
{
%
endcapture
%
}
6
7
{
%
json upload_options
%
}
8
{
9
"fileName"
:
"report.csv"
,
10
"content"
:
{{
csv_report
|
strip
|
json
}},
11
"public"
:
false
12
}
13
{
%
endjson
%
}
14
15
{
%
assign file_result
=
upload_options
|
file
%
}
16
Copied!
With following code your file will be transferred from url to your storage. Additionally
file_result
will contain a url of the report.
Previous
url
Next
graphql
Last modified
9mo ago
Copy link