- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 01:50 AM
Hi Friends,
Looking for some help into HRSD Employee Relation HR cases and HR Agent Workspace.
We are using a record producer to create employee relations HR cases, all of the provided variable’s details are getting generated and stored into Description with the help of below script.
new er_Producer().createCaseFromProducer(current, producer, cat_item.sys_id);
Please help us with below questions if anyone can.
- What will happen if we’ll remove this line of code from record producer script and make our description custom JavaScript code. Apart from description, will there be any other impact.?
- Our customer wants all variables details should be available on HR Agent Workspace? How we can do this? It’s good practice to create fields on HR ER Table and map with variables?
- Any there any way to bring only variables data into HR Agent Workspace ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 03:10 AM
Before - No variable editor on form in workspace
After
1) created new UI formatter for HR Case in HR Core scope. to copy the formatter name see the incident variable editor
2) then added that on HR case table "Workspace UIB" view - Ensure you are in correct scope
Created a new form section "Variable Editor". Save
Output: HR Case in native shows variable editor in particular form section
HR Case in workspace shows the variable editor in section
I hope I have answered your both the questions.
You can mark both of my responses as correct as per new community feature.
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-05-2025 08:39 PM
I believe I have answered your question on how to add that in my above responses.
Please mark my both the responses as correct and close the thread.
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-05-2025 02:01 AM
Responses inline
- What will happen if we’ll remove this line of code from record producer script and make our description custom JavaScript code. Apart from description, will there be any other impact.? -> no impact, just that if that's an OOTB record producer then you might miss any new feature if ServiceNow brings in that record producer script going forward
- Our customer wants all variables details should be available on HR Agent Workspace? How we can do this? It’s good practice to create fields on HR ER Table and map with variables? -> not a good practice, you can always show variable editor on HR agent workspace and that helps agents to view what all was submitted as part of case
- Any there any way to bring only variables data into HR Agent Workspace ? -> what do you mean? you can show variable editor for your case record in workspace
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-05-2025 02:47 AM
Thanks @Ankur Bawiskar for your valuable response.
Can you please help me to know how variable editor can some into HR Workspace. I tried but did not find any process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 02:50 AM
Default view already has Variable editor added for HR case table
Simply for your workspace view add that variable editor
This is for incident but something similar you can add for HR Case table
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-05-2025 02:49 AM
Thank you for marking my response as helpful.
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