Forum Discussion

amit_saroha's avatar
amit_saroha
New Contributor III
4 years ago

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?

9 Replies

  • 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.
    
  • jcornelius's avatar
    jcornelius
    New Contributor III

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

    • amit_saroha's avatar
      amit_saroha
      New Contributor III

      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.

      • nsingam's avatar
        nsingam
        Employee

        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.