Hi, I have this error workflow configured. Its getting triggered successfully when one of my workflow fails, but the email text expression is not getting evaluated
ie, i am expecting {{$node[“Error Trigger”].json[“workflow”][“id”]}} to be translated as my failed workflow id but it doesn’t evaluate at all
Am I doing anything wrong here?
I’m sorry to hear you’re having trouble. The expression itself is looking good to me (assuming the fancy double quotes “ are result of copy pasting over your JSON and your actual quotes used in your expression look like this Your workflow with ID: {{$node["Error Trigger"].json["workflow"]["id"]}} and name: {{$node["Error Trigger"].json["workflow"]["name"]}} failed to execute.
Would you be able to share your full error workflow (removing anything confidential, of course)?
In addition, you might want to store and look at the error workflow’s execution data - this might give us an additional indicator of what’s wrong. You can configure this through the workflow settings described at Workflow | Docs.
Hi @skanayi, it looks like your expression was entered as plain text. In order for the expression to be understood, you’d need to spcifically add it as an expression via the little cog next to the text field:
The error workflow data would then look like so:
The resulting emails then show the expected text (old vs. new):