Lifecycle Events Task Populating Record Producer Variables

asuthe
Tera Contributor

If a manager is completing a Lifecycle Events task (Child HRT for Parent LE Case) for their new hire, is there a way to get the New Hire (Subject Person) of the Parent LE Case populated in a sys_user reference variable on the record producer that triggers as part of their task? I can't use javascript:gs.getUserID() like I can for the New Hire's Record Producers because the current user is the manager.

1 ACCEPTED SOLUTION

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi asuthe,

This can be done using the field mapping on the Activity Field Mapping for the activity that is calling to the Catalog Item (Record Producer). Here is a print screen on how I have done this:

 

find_real_file.png

View solution in original post

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

you can configure custom script include and refer in your reference qualifier.

 

Regards,

Sachin

But how do i reference the HR Task that called the HR Service's record producer? The only values I'm able to pull are the current user's (manager's) sys_id. I can query for any HR Tasks they have open and assigned to them, but that won't work in the case they have multiple tasks assigned.

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi asuthe,

This can be done using the field mapping on the Activity Field Mapping for the activity that is calling to the Catalog Item (Record Producer). Here is a print screen on how I have done this:

 

find_real_file.png

Community Alums
Not applicable

This was very helpful!! Even if old, it still helped. Now the field in the HR Task table is called Questions if anyone ever bounces into this article!