cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameter to task with run policy triggered?

yashsri
New Contributor II

Hi Team,

I am able to pass the parameters from parent pipeline to child pipeline. But how do we pass the parameter to the pipeline while executing it from task when the run policy is triggered.

I can see that we have an option to hardcode the value for parameter under task update option. But if I want to run it using cloud link of that task and change the parameter value at that time how do we do that?

4 REPLIES 4

aleung
Contributor III

Here is the syntax:
[Trigger URL]?bearer_token=&[Authorization Bearer token][param1=abc]&[param2=123]

yashsri
New Contributor II

Thanks aleung. It does run the job but not able to get the parameter replace in the pipeline.

https://elastic.snaplogic.com/api/1/rest/slsched/feed/snaplogictrial/projects/Yash%20Gupta/data%20va...

Once I run this only 1 file is getting generated instead of 2 files. (I am only passing yashtest as a one of the output file name another one is hardcoded.)

Attaching the response I am getting once I run the above given link
response.txt (33.8 KB)

aleung
Contributor III

Those square bracket is for visually stating you need to replace those with actual value without the bracket itself and you are missing the ampersand character between any variable you are passing.

e.g.
https://elastic.snaplogic.com/api/1/rest/slsched/feed/snaplogictrial/projects/Yash%20Gupta/data%20va...

yashsri
New Contributor II

Thanks for the clarification. it is working now.