title: ADF: Capture Previous Task Details throws error
body: <p>I am trying to capture the error from failed activity in a variable activity or in web request activity for sending email.
  I am using “@activity().error.message” to capture it. It is throwing the attached error.</p>
  <p>Any help is appreciated to resolve this. Thank you.</p>
  <p><a href="https://i.stack.imgur.com/bGd1m.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bGd1m.jpg" alt="error message" /></a></p>
  <p>Web Activity dynamic content:
  <a href="https://i.stack.imgur.com/ED2R2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ED2R2.png" alt="enter image description here" /></a></p>