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

Sys ID is showing instead of name

reich
Giga Contributor

Hi All

I am working on a orchestration to create user in OKTA using Orchestration. While this is working as intended, that its creating user and its passing all the information we have, the field for Department and Manager (both are a reference field variable) is showing as the SYS ID not the display value when the account is created in OKTA.

I tried using the workflow.scratchpad to get the display value to pass but that is not working.

But when i made the Department and Manager field to be filled out, those are being carried over. Any ideas on how i can pass the display value when a variable is a reference field?

i added some screenshot just in case i am missing something or my coding is off.Table.PNGScratchpad.PNG

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Reich,



Syntax is


current.variables.VARIABLENAME.getDisplayValue(); //For referene fields.


Hi Pradeep



thanks for that



i tried with this code


workflow.scratchpad.manager = current.variables.sc_manager.getDisplayValue();



and it   doest work...any   more ideas?


Please user below code



workflow.scratchpad.manager = current.sys_user.variables.sc_manager.getDisplayValue();



Regards,


Sachin


reich
Giga Contributor

Hi



still no luck, the sys id is still being passed.