Duaer

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