09-27-2017 05:23 AM
Hi,
I would like to know how to correctly pass data via Semantic URL (as a Triggered Task via URL)?
Here is what I did:
Edit Pipeline Properties:
I created an exampleId variable, if I wanted to pass a value of 1 to the exampleId variable:
https://elastic.snaplogic.com:443/api/1/rest/path/to/my/project/pipelineName/exampleId/1
What I have working is:
https://elastic.snaplogic.com:443/api/1/rest/path/to/my/project/pipelineName/?exampleId=1
11-02-2020 09:50 AM
How can we retrieve parameter values from url below
https://elastic.snaplogic.com:443/api/1/rest/slsched/feed//Training/AmarY/exercise1_trg_task?p_param1=test1&p_param2=test2
11-02-2020 10:04 AM
Edit your pipeline properties and create those keys as pipeline Parameters:
p_param1
p_param2
Then you can reference them in any expression in the pipeline as _p_param1 and _p_param2 (i.e. prefix the parameter name with an underscore)
11-02-2020 10:50 AM
I tried it, It’s returning null in output. It’s an ultra task with child and parent pipeline. I gave parameters on parent pipeline
11-02-2020 10:58 AM
Are those being used/returned from the child pipeline then?
If so, you would need to pass the parameters to the child in the Pipeline Execute
11-23-2020 08:50 AM
Yes, i tried to pass both in child and parent but still ultra task not able to detect the query parameters.
Same pipeline works with triggered task where i can retrieve the parameters