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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
DINESHKUMAREAURA
Partner - Contributor II
Partner - Contributor II

TAC MetaServelet API - Dynamic Passing of Context Variables from an external API

Hi Team,

In the current scenario, I have created a Talend pipeline that is identical for all 50 countries, with the only difference being the context.country_name. I have published this Talend job in the Talend Administration Center and can generate a metaservlet API by encoding the below JSON string. This allows me to trigger the Talend job through an external API by passing the encoded string in the JSON body.

However, the issue is that for each of the 50 countries, I am generating 50 different metaservlet APIs. Is there a way to generate a single static API, where the context.country_name is passed dynamically as a parameter or header in the API body (or similar method), to avoid generating 50 separate APIs?

JSON Body for reference:

{
"actionName": "runTask",
"authPass": "talendsupport",
"authUser": "talendsupport@company.com",
"jvmParams": [
"-Xmx1024m",
"-Xms64m"
],
"mode": "synchronous",
"taskId": 1,
"context": {
"country_name": "India"
}
}

Thanks,

Dinesh

Labels (2)
1 Reply
DINESHKUMAREAURA
Partner - Contributor II
Partner - Contributor II
Author

Hi Team,

Could someone please assist me in implementing the solution for the scenario mentioned above? This will help us minimize repetition and streamline the process.

Thanks