Lookup or Cache to store a value

Hi,

Is there any way in snap logic to store a value say ‘A’ in any lookup or any cache variable so that I can resue it in different parent and child pipelines?

Hi Amit,

 If this is a value something not available in the parent, and it is a static value and wants to use that in multiple pipelines, then you can make use of **expression library**. You can define such values and add that expression library in the pipelines where you required and get the value and use it.
1 Like

@nsingam, Thank you but it’s a dynamic value.

Use PipeLine variable, it can be seen by all child snaps and passed on to any additional pipelines

But, with the pipeline variable I will keep adding original.original.original.original.original.original. How many times do I have to do it you imagine if the pipeline is big.

Hi Amit,

 Looks like you are trying to read the data from the upstream document. 

When you use the pipeline parameters you need not use the original field. Instead, you can access the variable using underscore. (ex: _yourVariableName). From the parent, when you are calling the child pipeline also you need to pass the value, so that in the child you will be able you use the same value.

1 Like

How to assign the value to the pipeline parameter at run time?

@amit.saroha
use the Pipeline Parameters fields
image

1 Like

@amit.saroha
and in the Edit pipeline
image

1 Like

this only applies to doc stream items (not pipeline parms) and to solve this simply add a mapper the maps $original to $ which would hoist $orginal back up to $
image