Table configuration in the HR Template of HRSD

Dinh Nguyen
Kilo Sage

Hello everyone,

I am learning about HRSD. I noticed that there is an HR Template feature as shown in the image below. I am wondering what characteristics a table must have in order to be displayed and selectable in the Table field.

I have done some research but couldn’t find any information. If anyone knows, please help me.

Thank you so much.

DinhNguyen_0-1753065296029.png

 

2 ACCEPTED SOLUTIONS

Chaitanya ILCR
Kilo Patron

Hi @Dinh Nguyen ,

 

ChaitanyaILCR_0-1753071544102.png

 

 

the tables logic is written in the hr_TemplateUtils script include and method is (process)

whatever the process method returns those tables will be displayed

 

ChaitanyaILCR_2-1753071666239.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

View solution in original post

Shraddha Kadam
Mega Sage

Hello @Dinh Nguyen ,

 

It ensures that the table supports HR-specific task functionalities, which are crucial for HR Templates to properly predefine values and automate actions. Limiting the selectable tables this way helps maintain compatibility and prevents errors within the HRSD module.

 

Essentially, HR Templates are designed to work with HR cases and tasks, so only tables that are part of that are relevant and available for selection.

If my response was helpful, please mark it as correct and helpful.
Thank you.

View solution in original post

6 REPLIES 6

anand-bhosle
Tera Guru

Hi @Dinh Nguyen 
The table must extend from sn_hr_core_task (or be a child of a table that does). This ensures the table supports HR-specific task features like HR cases, lifecycle events, etc.

Why this restriction?

The HR Template system is tightly coupled with HR task functionality. Templates are meant to predefine values and automate actions only for HR-related tasks, so limiting the "Table" field ensures compatibility and avoids errors.

Hi @anand-bhosle ,

Thank you for your response.
I’m not sure if there might be some confusion, because I noticed that besides sn_hr_core_task, the HR Case [sn_hr_core_case] table and tables that extend from HR Case can also be selected. Could you please help clarify this for me? Thank you very much.

Ankur Bawiskar
Tera Patron
Tera Patron

@Dinh Nguyen 

you can check the dictionary config of that field and confirm which all tables it allows.

from my understanding it allows HR Task, HR Core Case and all tables which extends the base HR Core Case table.

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

@Dinh Nguyen 

Thank you for marking my response as helpful.

As per new community feature you can mark multiple responses as correct.

If my response helped please mark it correct as well so that it benefits future readers.

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