# Get values from category and subcategory "create incident" Service Now step in a Workflow

**URL:** <https://community.dynatrace.com/t/get-values-from-category-and-subcategory-create-incident-service-now-step-in-a-workflow/56427>\
**Category:** Automations\
**Tags:** integrations, workflows, automations, servicenow\
**Created:** [July 13, 2026, 10:55am UTC](https://community.dynatrace.com/t/get-values-from-category-and-subcategory-create-incident-service-now-step-in-a-workflow/56427 "2026-07-13T10:55:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [July 13, 2026, 10:55am UTC](https://community.dynatrace.com/t/get-values-from-category-and-subcategory-create-incident-service-now-step-in-a-workflow/56427/1 "2026-07-13T10:55:21Z")

</div>

Hi,

We’ve created a workflow to create incidents in Service Now. It’s working fine. But we aren´t able to get the categories and subcategories.

According to the [documentation](https://docs.dynatrace.com/docs/shortlink/automation-workflows-service-now#create-a-servicenow-incident), in the fields category and subcategory

we are putting these sysparm queries:

Category:

‘name=incident^element=category^inactive=false’.

Subcategory:

‘name=incident^element=subcategory^inactive=false^dependent\_value=${category}’

But there aren´t recovering the values.

Does anyone know which is the correct sintaxis to get the values for category and subcategory?

Thanks in advance.

Regards,

Elena.
