Expressions and code
Use HTTP node pagination variables in Duaer
Duaer's HTTP Request node provides $pageCount, $request, and $response in pagination expressions. Those three names work only in that node.
Only inside Duaer HTTP Request pagination
$pageCount, $request, and $response exist for pagination on the HTTP Request node. An expression on another node does not have these values. How you turn pagination on is a parameter of the HTTP Request node itself.
The three variables
- $pageCount — how many pages the node has already fetched.
- $request — the request object this node sent.
- $response — the response from that call. $response.body is the body, $response.headers the headers, and $response.statusCode the HTTP status code. What body and headers contain depends on the API.
Questions
Which Duaer nodes can use $response?
In Duaer, $response, $request, and $pageCount work only in pagination expressions on the HTTP Request node. $response.body is the body, $response.headers the headers, and $response.statusCode the status code.
What does $pageCount mean in Duaer?
In Duaer HTTP Request pagination, how many pages the node has already fetched—use it to decide whether to request another page.
In this section
Use built-in methods and variables in Duaer
Duaer's built-in methods and variables for working with data in expressions. The Code node runs plain JavaScript and native Luxon.
ExpressionsTransform data with expressions in Duaer
Use expression transformation functions anywhere expressions are supported in Duaer. When you only reshape fields, prepare them in Edit Fields (Set) first.
ExpressionsUse convenience methods in Duaer expressions
In a Duaer expression, use $json for the current item, $("Node name") for an earlier node, and $now and $if() for time and conditions.