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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Winfried_Hoesmann
Contributor III
Contributor III

Pass Values through Components

Hi,

I am doing my first steps with talend.

Is there a chance to pass parameters through components? So may be I have a flow with Customer datas. Now I want to check if customer is already in CRM System with an REST API request. After request all fields of the flow are gone, I have only the results of the api request.

Then I want to put most of the fields in a json Field for an REST PUT Request. But I need also one field for the API URL to identify the customer. In tWriteJSONField I found nothing to pass the It so I can use it afterwards.

Is there a possibility or is that a big design error of Talend? I didn't understand that.

Telge

Labels (3)
1 Reply
Anonymous
Not applicable

This can be done. But you need to think about this in a different way to how you may have used other tools. The tWriteJSONField component can be used for individual rows of data or multiple rows. To pass through each row with a JSON String made up of only that row's data may make sense, but it wouldn't for a JSON String made up of multiple rows. As such, you need to work this logic in yourself. One of the benefits of Talend is that you can extend it in any way you wish. My method for achieving your requirement would be to build the JSON using a tJavaFlex. Here I can apply whatever logic I like in Java and pass out whatever I pass in for every row.

 

Alternatively, you could create your dataset and store it in memory. Then process each of the rows using your tRESTClient and as each row is returned (with a JSON response I presume) extract a key field from that result and then link back to your original dataset stored in memory.

 

There are plenty of other ways of achieving this requirement.