cancel
Showing results for 
Search instead for 
Did you mean: 

Semantic URL Example

jsgeronimo
New Contributor II

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:
26 pm

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

18 REPLIES 18

amar
New Contributor II

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

koryknick
Employee
Employee

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)

amar
New Contributor II

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

koryknick
Employee
Employee

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

amar
New Contributor II

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