Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
kramaswamy1695221616
Contributor
Contributor

How to pass a certain batch of messages in a single call to a rest api

Iam trying to get the data from Oracle database and create a json payload using TXMLMAP and then pass it to Restapi.I have 162k records and trying to implement a batch processing for every 10000 records extracted from db i need to send a single Restapi call.Right now for every record it is doing a call to a API. Please let me know how to implement that.Any help is appreciated .

Thanks in advance

069U1000001kxkTIAQ.png

Labels (2)
3 Replies
Anonymous
Not applicable

Hi

Using tLoop to do a loop and only select 10000 records from DB, check the 'All in one' option on tXMLMap to generate one document to include all 10000 records for one API call.

069U1000001oYnVIAU.png 

Regards

Shong

kramaswamy1695221616
Contributor
Contributor
Author

Thanks i was able to implement. But the Json structure {"data":[

{"ban":"8348","AccountId":"103","d":"T","triggeringSystem":"ECN","Name":"1"},

{"ban:"20","AccountId":"4","d":"C","triggeringSystem":"ECN",

"Name":"2}

]}

But my rest api is throwing 400 Bad request error

Anonymous
Not applicable

About Bad request error, I think you need to check and get more information about API definition, what's the Json structure format does the API expect? Does it support multiple records in Json?