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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use context variable at run time

Hi -

 

I have a job that uses a REST service. I pull a variable (customer_account) from a database, and require another variable (date) to be entered at run time

 

On the build I want to execute as follows MyJob.sh $date(yyyy-mm-dd).

 

I added the date under the context variable, but do not get a prompt for the date value when running it 

 

 

Any suggestions?

My job:

 

0683p000009Lv4z.png

tRESTClient:

0683p000009Luvp.png

 

 

Labels (4)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

You can pass the value for a context variable on the command line using "--context=$yourVariable".
Check this post https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-...

View solution in original post

2 Replies
TRF
Champion II
Champion II

You can pass the value for a context variable on the command line using "--context=$yourVariable".
Check this post https://community.talend.com/t5/Design-and-Development/resolved-Passing-variable-context-value-from-...

Anonymous
Not applicable
Author

Thank you TRF