The CreatorCon Call for Content is officially open! Get started here.

HRSD - HR Templates (template for HR Task) - dynamic values within a field

Ariel Aharon
Giga Guru

Hi,

 

I've stumbled upon a request to create an HR Task for a Lifecycle Event Case and I am left over with fulfulling the last requierment to:

* Make Short Description field: "Bla bla some text <subject person's name>, bla bla <subject person's employment end date>"

 

What I understand is that I need to have access to:

* Subject person's data (Users)

* Subject person's HR Profile

* Also - to be able to populate variables within the template's field

 

Note: In terms of access and roles, I have the required access and roles to do so.  just the "how" is what I'm missing here.

 

I looked for a solution for quite a while and I haven't found one yet.

1 ACCEPTED SOLUTION

AnubhavRitolia
Mega Sage

Hi @Ariel Aharon 

 

I fear this is not possible to have dynamic value from HR template.

 

You can using Business Rule to be run on Insert of HR task for particular HR Template by putting that in condition. Than update the Short Description of HR task using dot walking.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

View solution in original post

3 REPLIES 3

AnubhavRitolia
Mega Sage

Hi @Ariel Aharon 

 

I fear this is not possible to have dynamic value from HR template.

 

You can using Business Rule to be run on Insert of HR task for particular HR Template by putting that in condition. Than update the Short Description of HR task using dot walking.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Hi @AnubhavRitolia 

 

Thank you for the great explanation and creative solution that you offered!

I will try that today and mark your answer as a solution if it does.

Your answer was great, thank you very much!

 

Btw a little note, you can access the hr profile data using dotwalk:

 

// For example:

var firstName = current.parent.hr_profile.user.first_name;

var employmentEndDate = current.parent.hr_profile.employment_end_date;