How to sync Catalog Task Variables in ServiceNow

Originally asked by Jorden Van Bogaert on 20 September 2021 (original question)


Hi

We are looking into syncing a catalog task from ServiceNow to Jira.

However, the catalog task has a section “variables” where more fields are stored with data. Unlike the normal fields on the catalog task, I’m unable to directly get their value by their system name.

Is there a way to get the values for the variables?

Thanks in advance


Answer by Francis Martens (Exalate) on 20 September 2021

Jorden Van Bogaert

Check Retrieve a list of variable for a RITM (old community) if going to match your need.


Comments:

Jorden Van Bogaert commented on 21 September 2021

Thanks a lot! (old community)

Answer by Archita Gupta on 05 October 2021

How to get the reference field value instead of sys id from the catalog task variables? e.g. in the requested by variable, I am getting sys id instead of user’s name. Code I am using is

catalogTask.request_item = nodeHelper.getReference(“sys_user”, “sys_id”, ${sys_id})?.sys_id

replica.variables = buildVariablesMap(catalogTask.request_item.display_value)


Comments:

Jose Lobo commented on 05 October 2021

Hey Archita,
Francis Martens (Exalate) answered this in your other community post.

Best,

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.