Capturing pipeline invocation type
Is there a way/expression to capture pipeline invocation type (i.e. Scheduled Task, Triggered Task, Manual).
Hey @nishant.k9,
There’s a way to capture the invoker type by using the elastic api. Basically we’re going to gather all executions of that particular pipeline, and separate only the last one (that’s the actual execution that’s going to trigger the elastic request). In the response there’s a field that points to the invoker type. Unfortunately there’s no parameter to separate the last execution, at least I don’t know one, that’s why I added one more snap with an expression that filters out the information we need.
You’ll need a basic auth account for the snaplogic elastic request. Note that this will work only upon execution, and if you want to validate and test, you’ll need to use Record Replay.
CaptureInvoker_2022_06_03.slp (4.2 KB)
Regards
Bojan