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.