I have a requirement to mail errors in pipeline through logic apps.
I have a master pipeline with an Execute Pipeline activity and a web activity that sends email via logic app.
Problem is I am not sure how to capture the error message from Execute Pipeline activity as the output of this activity is the PipelineRunId for the downstream pipeline mentioned in Execute Pipeline activity...
Please let me know if there is any method to capture the error here..
CodePudding user response:
you can use the below expression:
activity('Actname')?.error?.message