The CreatorCon Call for Content is officially open! Get started here.

Reference variable shows sys_id instead of user name

gnunez
Kilo Guru

Hello all,

We created a catalog item that integrates with an app in SNOW store and have succesfully tested, but only downside is when capturing the variable (variable type is Reference) the sys_id is showing instead of the user's first and last name. Is there any way to change this default setting to set the name instead of the sys_id?

Also we are referencing the sys_user table, don't know if anything in there will make a difference.

Thanks in advance!

Using Istanbul UI16

1 ACCEPTED SOLUTION

Hi Andrew,



I figured out my issue. I had to set the value to administrator_name.name instead of only administrator_name in the workflow.



Thanks for helping though!



-Grace


View solution in original post

10 REPLIES 10

Are you using Reference or Lookup Select List?   The value would be sys_id and label would be name.   Is your workflow using setValue or setDisplayValue?   I can see that working for setDisplayValue on a reference/lookup.


I'm using Reference. I am using the workflow provided by the ServiceNow app eSignifi so the variable is specified in a field box called "First signer custom tabs" as {"tabLabel": "administrator_name", "value":"${current.variables.administrator_name.name}"}


Interesting, must do something like a set by display value thing then which would require the name.


Yes I'm guessing the workflow is using setDisplayValue.


andrewpilachows
Kilo Guru

The issue you are running into is that sys_user table read access ACL is restricted to certain roles.   I would be careful with opening that up, but I do not know what an alternative would be.