- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 02:41 AM
Hello All,
I am working with a record procedure related to HR, which was created using the catalog builder. I have noticed that when an HR case is created, the short description populates the "requested for" or "opened for" name instead of the subject person's name.
Could anyone provide suggestions on how to auto-populate the subject person's name?
Below is the record producer script for reference.
--------------------------------------------------------------------------------------------------------------------
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 02:49 AM
@AshwiniSawant Create an onBefore insert business rule on sn_hr_core_case table and set the short description with subject person name.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 07:13 AM
For HR cases, "Opened for" refers to the user who initially created or raised the case, while "Subject person" is the user who is the primary focus or concern of the case. The "opened for" person may be the same as the "subject person" but can also be someone acting on their behalf.
check this link for better explanation
The difference between Opened for and Subject person in HR service
For your requirement you will have to update _setCommonFields method in script include hr_CaseUtils
OR Another easy way
You can use before insert business rule on HR Case table, something like this
current.short_description = current.hr_service.getDisplayValue() + ' ' + current.subject_person.getDisplayValue();
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
05-29-2025 06:44 AM
Already tried, getting requested by name in opened for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 07:13 AM
For HR cases, "Opened for" refers to the user who initially created or raised the case, while "Subject person" is the user who is the primary focus or concern of the case. The "opened for" person may be the same as the "subject person" but can also be someone acting on their behalf.
check this link for better explanation
The difference between Opened for and Subject person in HR service
For your requirement you will have to update _setCommonFields method in script include hr_CaseUtils
OR Another easy way
You can use before insert business rule on HR Case table, something like this
current.short_description = current.hr_service.getDisplayValue() + ' ' + current.subject_person.getDisplayValue();
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
05-29-2025 02:51 AM
you are setting it with this line and it's not setting with that variable value?
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
05-29-2025 02:59 AM
Thank you @Ankur Bawiskar for your response.
the field value for the subject person is being set correctly, but it does not appear to be reflected in the short description.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 03:04 AM
the short description always populates with Opened for I believe
You can use before insert business rule to set it
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