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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
sbhadra
Contributor II
Contributor II

Merging data getting from different api calls

Hi Team,

 

I have an api mentioned below

 

https://api.xyz.com/1111/details.json (where 1111 is the id and being iterated) which is giving me three columns after extracting the data using textractjsonfields. In the same flow I am calling another api like https://api.xyz.com/1111/comments.json which after parsing is giving me one column. Hence, I need to merge all this columns into an CSV file and then email it.

 

As part of the solution I have used a treplicate component so that i can replicate the previously generated columns and merge it into a tMap but that is not happening. Please suggest a way for the same. Please have a look on the flow

 

Labels (2)
5 Replies
Anonymous
Not applicable

Read the data from your first API call into a tHashOuput. Do the same with your second API call (a different tHashOutput). Then use two tHashInput components to join the data using a tMap.

sbhadra
Contributor II
Contributor II
Author

Hi,

I am unable to understand. Will you be able to show me the flow. I have already shared the job flow

sbhadra
Contributor II
Contributor II
Author

Hi Team,

 

I tried to separate the two flows and cache the data using thashoutput but still I am unable to figure out why the data from two different api calls are not getting merged. please have a look on the screen shot. 

 

 

Anonymous
Not applicable

Use onSubjobOK instead of onComponentOK,
tRestClient1...tHashOutput1
|onsubjobok
tRestClient2...tHashOutput2
|onsubjobok
tHashInput.....
sbhadra
Contributor II
Contributor II
Author

Hi Shong,

 

The requirement is I need to combine 4 columns in one csv file. Out of which three columns are coming from one response. The data is getting referenced from tJavaRow_1 and the last one is coming from another response which is getting referenced from tjavarow_2. Now the csv file should be like this mentioned below

 

RollNo|Name|Age|Educational Qualification

10|Ajit|24|B.Tech

 

Now from this the 1st three columns are coming from 1st API call and the last one is coming from 2nd API call. I have divided the flow into two sections but still I am unable to merge the result. I am uploading my job design. Please suggest on the same.

 

It will be helpful if you can provide a screen shot of the resolution


Capture.JPG