Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ceris_land
Contributor
Contributor

Unable to retrieve the body and headers from tRESTClient

Hi, 

 

Is there any way I can retrieve the body from a REST call as well as the ETag from the header using the same tRESTClient component? 

 

Currently I am hitting the postcodes.io api and pulling back the associated country, region etc. From the tRESTClient if I connect a tExtractXMLField I am able to see the associated data however as soon as I connect a tJavaRow to retrieve the header, the log row then returns null for each of my columns.

 

Is there something I am doing wrong?

0683p000009M4WJ.png

0683p000009M4WO.png

 

 

 

 

 

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable

It looks like you are not passing your column data through the tJavaRow. The easiest way to do this is to ensure your output schema matches your input schema, then clicking the "Generate Code" button. Do this before adding your code to extract the headers. If you want to pass out header information into a column, you will need to add that as an output column and assign it the header value you require.

View solution in original post

1 Reply
Anonymous
Not applicable

It looks like you are not passing your column data through the tJavaRow. The easiest way to do this is to ensure your output schema matches your input schema, then clicking the "Generate Code" button. Do this before adding your code to extract the headers. If you want to pass out header information into a column, you will need to add that as an output column and assign it the header value you require.