Forum Discussion
j_angelevski
4 years agoContributor III
Hi @mmussitsch,
Yes ! You can absolutely pass the whole pipe object to the child pipeline form the parent pipeline. In your parent pipeline, with the Pipeline Execute snap you can pass a parameter for example pipeObject
:
Once you pass the pipe
object to your child pipeline, you can parse the JSON string with the JSON.parse()
method and then you can access any pipe
attribute you need.
For example:
JSON.parse(_pipeObject).label
Will give you the label of your parent pipeline. To see all properties, you can just map the whole pipeObject parameter JSON.parse(_pipeObject)
.
- mmussitsch4 years agoNew Contributor II
Thank you!
I swear I tried this, but it’s that dang ‘=’ sign that burns me more often than not. I didn’t send it properly and instead was treating it as a string.