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

Announcements
Meet Qlik's New CEO. The Future Is Bright — Here's What to Expect
cancel
Showing results for 
Search instead for 
Did you mean: 
FrancoisP_CH
Contributor II
Contributor II

tHttpClient : how to specify a dynamic attachment name

Hello,

I'm trying to configure the "new" tHttpClient component (since the tFileFetch is depreciated), and I have an issue to configure a dynamic value for the attachement name.

I try the following values to retrieve the input "tmpFileName" field, but none of them work:

  • {.input.tmpFileName}
  • input_row.tmpFileName
  • row5.tmpFileName

The downloaded file use the value specified in the field, with the dot and the braces, for the file name, but never the value provided in the associated field.

Do I use a wrong method, or is it the component which does not allow such an option?

Talend Studio R2026-06

Labels (1)
  • v8.x

1 Solution

Accepted Solutions
Sainadh_Moole
Support
Support

Hi @FrancoisP_CH,

Thank you for reaching to Qlik community support.

In Talend Studio R2026‑06, the new tHttpClient component does not support row expressions in the “Attachment name” field. The field only accepts literal values or context variables, so expressions such as {.input.tmpFileName} or row5.tmpFileName are interpreted as static text.
 

To achieve dynamic file naming, you can:
 

1.Assign the row value to a context variable before calling tHttpClient and use that variable in the Attachment name field.

2. Alternatively, download the file with a fixed name and then rename it afterward using tFileRename or tFileCopy.
 

This is a known limitation compared to the older tFileFetch component
 

View solution in original post

2 Replies
Sainadh_Moole
Support
Support

Hi @FrancoisP_CH,

Thank you for reaching to Qlik community support.

In Talend Studio R2026‑06, the new tHttpClient component does not support row expressions in the “Attachment name” field. The field only accepts literal values or context variables, so expressions such as {.input.tmpFileName} or row5.tmpFileName are interpreted as static text.
 

To achieve dynamic file naming, you can:
 

1.Assign the row value to a context variable before calling tHttpClient and use that variable in the Attachment name field.

2. Alternatively, download the file with a fixed name and then rename it afterward using tFileRename or tFileCopy.
 

This is a known limitation compared to the older tFileFetch component
 

FrancoisP_CH
Contributor II
Contributor II
Author

Thanks for the answer. I use a tFileCopy after the tHTTPClient and it works fine.