Employment Start Date

Jen
Kilo Contributor

Can someone point me in the direction on what client script, script include or business rule is auto populating the employment start date on the HR profile for the out of the box onboarding form. 

I want to duplicate it for the employment end date in the offboarding process but can't find it anywhere.

 

Thank you in advance.

 

Jen

 

5 REPLIES 5

Ct111
Giga Sage

Hi right click on Start date and click on Configure Dictionary

there under default value you might see a script like

gs.now() or something related to gs that is populating it 

 

And if nothing is there then in global search  just enter your field name (i.e  start date) you will find business rules or client scripts

related to that field that would be setting it.

 

Mark my ANSWER as CORRECT and HELPFUL 

Raju Koyagura
Tera Guru

Employment Start Date is updating from the Script Include called hr_Profile and the method name is updateProfile. 

 

Whenever "Request OnBoarding" record producer is submitted it calls new hr_ActivityUtils().createCaseFromProducer(current, producer, cat_item.sys_id) and internally it calls hr_CaseUtils script include which again calls hr_Profile script include.

find_real_file.png

Thank you.

I found the script include but I a just not sure how to use that to update the employee end date on the hr profile from the off boarding lifecycle event case I created?

Any ideas? 

 

Jen

Kiel Sanders
ServiceNow Employee
ServiceNow Employee

It should automatically get mapped to the user profile under the script include section that Raju mentioned if the variable name matches the field name (employment_end_date) on the HR Profile table.  If the variable name does not match, you can add the mapping to the hr_Profile.rpToProfileMap mapping on the hr_Profile script include.  Modifying the delivered script include is not recommended so updating the variable name would be preferred.