Client Script in HR workspace

PreethiG6447769
Tera Contributor

Hi Team,

 

We have client script- on change of affected employee on sn_hr_core_case table, it populated affected employee country in HR case.

This working fine in native view for all HR tables and related COE tables. 

Client script UI type - All.

 

In HR workspace, when we change the affected employee for other COE tables(sn_hr_core_case) its populating the affected employee country.

 

But for sn_hr_core_case cases in workspace, its not populating country on change of affected employee. Why this happens.

12 REPLIES 12

PreethiG6447769_1-1770791202436.png

 

@PreethiG6447769 

so what debugging did you do?

Ensure Global Checkbox is Checked for your client script.

Did you check what came in alert for the JSON? i.e. alert(JSON.stringify(answer))

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar , I have put the logs and checking all are returning the values correctly, but only for HR case coe that too in workspace its not updating the country.

@PreethiG6447769 

what do you mean by HR Case COE?

for which HR case table it's not working?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

sn_hr_core_case -- for this COE