HRSD Employee Relations

_Samay
Tera Expert

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 ?
2 ACCEPTED SOLUTIONS

@_Samay 

Before - No variable editor on form in workspace

AnkurBawiskar_0-1746439527998.png

 

After

1) created new UI formatter for HR Case in HR Core scope. to copy the formatter name see the incident variable editor

AnkurBawiskar_3-1746439719238.png

 

AnkurBawiskar_1-1746439581804.png

 

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

AnkurBawiskar_2-1746439665539.png

 

Output: HR Case in native shows variable editor in particular form section

AnkurBawiskar_4-1746439748683.png

 

HR Case in workspace shows the variable editor in section

AnkurBawiskar_5-1746439798738.png

 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

@_Samay 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@_Samay 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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. 

@_Samay 

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

AnkurBawiskar_0-1746438640440.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@_Samay 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader