Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to create a file name from cprocessor and pass the same to cAwss3 component as "CamelAwsS3Key". Can i do that? how?
Hi @lalkiran88,
You can do this with a cSetHeader component (https://help.talend.com/reader/wPJh3yAxz0baR8imIwmlYA/PJMBt6~g0wBzv97ZUwEpUw), but I sense you are using some code to build your value. In which case there is a way to do the job of the tSetHeader component using code. In your cProcessor code box, carry out your value creation code and then add the following line....
exchange.getIn().setHeader("CamelAwsS3Key", "myFile.txt");
This will add your new header to the IN Body of the Exchange message. Obviously replace the "myFile.txt" value with your calculated value
Regards
Richard
Hi @lalkiran88,
You can do this with a cSetHeader component (https://help.talend.com/reader/wPJh3yAxz0baR8imIwmlYA/PJMBt6~g0wBzv97ZUwEpUw), but I sense you are using some code to build your value. In which case there is a way to do the job of the tSetHeader component using code. In your cProcessor code box, carry out your value creation code and then add the following line....
exchange.getIn().setHeader("CamelAwsS3Key", "myFile.txt");
This will add your new header to the IN Body of the Exchange message. Obviously replace the "myFile.txt" value with your calculated value
Regards
Richard