I am not able to dot walt to parent.subject_person.user.sys_id from HR Task in a BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 04:15 PM
Hello Community i want to get the user id of the subject_user in parent case of an HR Task but with no result can someone help me on this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 08:44 PM
Hi Skydev22,
Only parent.subject_person.sys_id is enough to retrieve user ID of Subject person.
Brgs,
Phuong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 09:46 PM
this should give you the user id if you are on HR task
current.parent.subject_user.user_name;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 10:45 PM
Hi @Skydev22 ,
if you need sysid of the subject person you just need --> current.parent.subject_person
if you need userID(UserName) of the subject need you can use --> current.parent.subject_person.user_name
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya