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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Ansie
Contributor
Contributor

Dynamically fetch the Plan Name from Console to Task Variable

Hi Team,

We are trying to capture the Plan Name that we define in Talend Management Console & pass it as a variable at task (job) level

Created a plan as below, but its not capturing the Plan Name against the variable as seen in 2nd screenshot

0695b00000QDyglAAD.png0695b00000QDyggAAD.png

0695b00000QDygvAAD.png

please help us resolve

Labels (3)
7 Replies
Anonymous
Not applicable

If I understand your question, you should be able to retrieve all of this info using the api swagger info. You can see the specification here....

 

https://api.us.cloud.talend.com/tmc/swagger/swagger-ui.html

 

Please note the URL (I am using the "US" version). You may be using a different version (possible "EU" for example). I used the "plans :: executables" calls to get this sort of data.

Ansie
Contributor
Contributor
Author

@Richard Hall​ thanks for a quick reply, but API swagger is not something we are looking for, we were looking for a solution between Talend management console & studio, We initially referred to this document

https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-linux/context-parameters

& enabled the plan variables at TRE level

0695b00000QEAArAAP.png passed them as blank variable via studio job 0695b00000QEABBAA5.pngunable to capture them at runtime, request to help here

Anonymous
Not applicable

I'm afraid you will need to simplify what it is you are looking to do. You saying you want to pass the Plan Name. This can certainly be obtained with a Talend Studio job using a rest call and the API I pointed you to. You can find out anything you need from the TMC within a Talend job running outside of TMC or with TMC by making a rest call. But I suspect that maybe this is closer to what you are looking for....

 

https://help.talend.com/r/en-US/Cloud/studio-user-guide-data-integration/task-parameters

Ansie
Contributor
Contributor
Author

Thank you for your response; nevertheless, we need the plan name to be stored in a variable without the use of a rest call or API swagger.

 

We've set up the flow execution variables post referring to link shared above, however they just provide task-level information and nothing about the plan.

0695b00000QELzqAAH.pngPlease advise if there is another way to capture the plan name.

Anonymous
Not applicable

I'm afraid the flow_ parameters will only point to task information. The only way you have of achieving this for plan info is by using the API. What is the concern about making an API call to retrieve this information? Maybe I can help? I use API calls within my jobs to pass information between jobs that are running and to start TMC jobs running dynamically. It is a really useful bit of functionality to master.

Ansie
Contributor
Contributor
Author

Could you please explain how activating task variables in TRE (remote engine) as described in this document works ,

https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-linux/context-parameters

 

and if it can be used to fetch details at the task/job level?

Anonymous
Not applicable

Hi @Ansie Jacob​ ,

 

I think we have got to a point where it would be easier for you to raise this as a support case. We are approaching an area where it is so much quicker and easier to take a look at your current configuration....which we can't do via the Community. However, thank you for coming via this route. This discussion will certainly provide answers and clarifications to some other users who are seeking similar information.