Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Qlik Connect 2025! Where innovative solutions turn your data visions into reality: REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
pawe84
Creator
Creator

How to use html file for tSend?

Hi Tableau friends,

I have a html file in a folder stored.

Now I want to use this file for tSend.

I tried to use tFileInputRaw, saving the data into a context variable and wanted to call this context variable. 

 

pawe84_0-1711119554785.png

pawe84_2-1711119795825.png

pawe84_1-1711119674632.png

But it's not working. Is there something missing? The email is still empty when it's sending to aan email address.

Thanks for any hints.

 

 

 

Labels (1)
  • v8.x

1 Solution

Accepted Solutions
pawe84
Creator
Creator
Author

I solved this issue now.

Inside tjava:

globalMap.put("htmlContent", row1.content);

and in tSend

(String)globalMap.get("htmlContent")

 

View solution in original post

2 Replies
pawe84
Creator
Creator
Author

I solved this issue now.

Inside tjava:

globalMap.put("htmlContent", row1.content);

and in tSend

(String)globalMap.get("htmlContent")

 

Shicong_Hong
Support
Support

Hi 

Glad to see you resolve the issue by using global variable. You can also use context variable, you have the wrong code on tJavaRow, it should be:

context.email=input_row.content.toString();

Regards

Shicong