Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hr Service field is not populating

Andre Jones
Tera Expert

Hr Service field is not populating when created from Record Producer. 

AndreJones_0-1699980420214.png

This is what I have in the script 

current.hr_service = gs.getProperty("sn_hr_er_case._Leave_SysID"); 

Can someone direct me as to what I'm doing wrong?

1 ACCEPTED SOLUTION

current.hr_service = gs.getProperty("sn_hr_er_case._Leave_SysID"); 

current.contact_type= "self_service";
current.state = "10"; // Ready
current.status = " submitted"

View solution in original post

6 REPLIES 6

Andre Jones
Tera Expert

I figured out the answer my problem. I had to create a system property with the sys_id

current.hr_service = gs.getProperty("sn_hr_er_case._Leave_SysID"); 

current.contact_type= "self_service";
current.state = "10"; // Ready
current.status = " submitted"