Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
UraniumSpoon
Contributor
Contributor

How to use elements from response in WITH CONNECTION

I'm trying to query a paginated website, that returns a mis-formatted "Next" value, and I need to read that 'next' value into the "URL" field of the WITH CONNECTION call. How would I go about doing that? 

I essentially need this:

TempTable:
SQL SELECT
"__KEY_root",
(SELECT
"__KEY__links",
"__FK__links",
(SELECT
"href",
"type",
"__FK_next"
FROM "next" FK "__FK_next")
FROM "_links" PK "__KEY__links" FK "__FK__links")
FROM JSON (wrap on) "root" PK "__KEY_root"
WITH CONNECTION(URL "api.example.com" & $(links/next/href));

 

Where `$(links/next/href)` is the value contained in the response at that location.

Labels (2)
1 Reply
Vu_Nguyen
Employee
Employee

Hi, could you give an example of how the URL with pagination parameter looks like? Is it  something like https://api.example.com/links/next/href ?

Vu Nguyen
If a post helps resolve your issue, please mark the answer as correct.