How can I use Synapse's Web Activity to query a pipeline run? In particular, I want to extract the error message in case of failure.
The initial setup is as follows, following the GET request posted by documentation: https://docs.microsoft.com/en-us/rest/api/synapse/data-plane/pipeline-run/get-pipeline-run#clouderror
https://i.stack.imgur.com/Ud14y.png
To get the RunId of the pipeline, I simply use this code: activity('Execute Pipeline1').output.pipelineRunId
When I inspect what was sent in the GET request, below, I see that it has indeed extracted a pipelineRunId, but not the one listed in the debug panel below.
https://i.stack.imgur.com/HaSHM.png
I suspect this is the issue, but how can I get the pipeline Run Id for the exact run that was ran and that is shown below?
Edit
Adding in pipeline Run IDs that I can query; but I cannot query the pipeline that was just ran.
