How can I show a workflow step comment in the email to all other following steps?

Question

I have a question about Workflow Post Step Logic. I want to show a comment of the second step in the approval email to all other following steps. I thought I could add it to through a dataMap of the workflow. But I was not able to get it. Where can I find what objects are bound in the postStep context?

Answer

It is not possible in a Workflow Post Step Logic but it is possible to write it in the templating engine:

$first(rest(workflowHistory.steps)).comment$

Found an issue in documentation? Write to us.

Â