- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 09:39 AM - edited 11-11-2022 09:40 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2022 04:31 AM
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.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2022 04:31 AM
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.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2022 11:02 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 01:48 AM
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;