Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Default value of logged in user record of reference field

Sri56
Tera Contributor

Hi Team,

 

I have one record producer in which i have created a variable (reference) that is a reference table of HROP.

i need to set the default value of this variable to logged in user HROP's table record.

ex: if user1 is logged in, then the default value of this variable should be his HROP's table sys_id.

 

Please help me with the script.

 

Thanks,

Sri

2 REPLIES 2

vermaamit16
Kilo Patron

Hi @Sri56 

 

You can use an advanced reference qualifier for your requirement. Refer https://docs.servicenow.com/bundle/xanadu-platform-administration/page/script/server-scripting/conce...

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma

Hi Amit,

 

Can you give me the reference filter query for my scenario?

 

Thanks,

Sri