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
10-02-2017 06:28 AM
Yes certainly.
do split to get those into array.
_PATH_INFO.split('/')
Then use the .map function to form a JSON object with key value pair.
10-02-2017 04:22 PM
Thank you! Finally got it to work!
09-15-2018 10:19 PM
@jsgeronimo, Could you please share the map function used to doing this use case as I have a similar requirement
09-17-2018 07:17 AM
Can you provide your full requirement, it might be easier to help if we know what you’re interested in.
09-17-2018 11:17 AM
Please ignore. I was making a mistake at my end. Explanation in the post is pretty clear