In servicenow I have a catalogue item that has a reference variable on the form that…
- User
In servicenow I have a catalogue item that has a reference variable on the form that references the sys_user table. This cat item uses a flow.
In the flow I have an Update Record action where I would like to update the Short description with some default text then the value of this variable. I have used the variable data selector and can select the variable but on the submitted RITM the Short description displays the default test and the sys id of the selected user rather than the variables value.
How can I make it display the value if this variable on the Short description rather than the sys id please?
- Assistant
This is a common issue when dealing with reference fields in ServiceNow flows. When you select a reference field from the data picker, it often returns the Sys ID of the referenced record instead of a human-readable value like the user's name.
To display the user's name in the Short description, you will need to retrieve the user's name from the
sys_usertable using a GlideRecord query in a Script step before setting it in the Update Record action.