Default value of logged in user record of reference field
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2024 10:44 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 12:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 10:21 PM
Hi Amit,
Can you give me the reference filter query for my scenario?
Thanks,
Sri