# Passing outcome of Javascript task to next task in Workflow

**URL:** <https://community.dynatrace.com/t/passing-outcome-of-javascript-task-to-next-task-in-workflow/54519>\
**Category:** Automations\
**Tags:** workflows\
**Created:** [January 1, 2026, 12:13pm UTC](https://community.dynatrace.com/t/passing-outcome-of-javascript-task-to-next-task-in-workflow/54519 "2026-01-01T12:13:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepkadam](https://avatars.discourse-cdn.com/v4/letter/p/74df32/32.png) [@pradeepkadam](https://community.dynatrace.com/u/pradeepkadam)\
**Post date:** [January 1, 2026, 12:13pm UTC](https://community.dynatrace.com/t/passing-outcome-of-javascript-task-to-next-task-in-workflow/54519/1 "2026-01-01T12:13:09Z")

</div>

I have created a workflow for creating the incident in Servicenow. with default/fix values it works fine.

I want to derive the values for category, subcategory, imapct, urgency etc. specific to the problem and send this data to SNOW instead of fixed values. For this I have added additional javascript task to get the values from problem data. which provides the output like

 ![pradeepkadam_0-1767269163761.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/141a2e574993a9d74bc76ed746b01c6d802b5e4b.png)

Next task is create incident and value for category is passed as expression =&nbsp;{{ result(‘js\_transform’).[issue\_category] }}

tried few others way like {{ result(‘js\_transform’).issue\_category }} or&nbsp;{{ result(‘js\_transform’).[“issue\_category”] }} still not able to capture the variable with error - Error evaluating ‘category’ in input. Undefined variables: issue\_category.  
Use the expression preview in edit mode to review the input.
