Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
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.
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.