cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to Get the previous 2 snap's snap label and snap instance id

sjakathi
New Contributor II

Hi All,

How to get the 2 previous snap label and snap instance id .
image
image

7 REPLIES 7

bojanvelevski
Valued Contributor

If the process allows, you can take out an error view on your rest snap, and combine the outputs with Union. That way, you can get the label and the instance_id if the rest snap fails.

image

ptaylor
Employee
Employee

Iโ€™m not clear on why you need variables to do this. The label of the โ€œREST Postโ€ snap is โ€œREST Postโ€. Itโ€™s constant unless you change it. Canโ€™t you just pass โ€œREST Postโ€ to your child pipeline?

The snap.instanceId of the REST Post is a bit harder to discover since our UI doesnโ€™t expose it. But itโ€™s also constant โ€“ it was assigned at design time when the snap was added to the pipeline. It doesnโ€™t change at runtime. You could probably find it by exporting the pipeline and looking at the .slp file. But Iโ€™m also wondering how this value is useful when itโ€™s received in an email. What would one do with this information? How would the snap.instanceId value help in determining which snap failed? If the label is unique within the pipeline and youโ€™re including the name or ID of the pipeline, wouldnโ€™t that be sufficient?

sjakathi
New Contributor II

Thank you all for your suggestions.We were trying to avoid the hard coding of the values.