03-18-2021 12:49 AM
Hi All,
How to get the 2 previous snap label and snap instance id .
03-18-2021 08:46 AM
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.
03-18-2021 08:59 AM
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?
03-18-2021 11:52 PM
Thank you all for your suggestions.We were trying to avoid the hard coding of the values.