From a HR case, when agent uses the transfer button and leaves the department as Human Resources, an error loads: "Function log is not allowed in scope sn_hr_core. Use gs.debug() or gs.info() instead"

Cynthia L_
Giga Guru

From a HR case, when agent can use the transfer button to transfer to an Incident or Service Request.  If the agents leaves the department as Human Resources and clicks Transfer the process hangs. Eventually an error loads: "Function log is not allowed in scope sn_hr_core. Use gs.debug() or gs.info() instead".  I'd like to add a friendly error to stop them from choosing Human Resources.  I've tried adding a msg to UI action Transfer (to task) but cannot get the msg to display.  I would appreciate any help. 

find_real_file.png

1 ACCEPTED SOLUTION

Cynthia L_
Giga Guru

The gslog statement ended up being in the HRCreateDepartmentTicket script include.  Thank you for your assistance.

View solution in original post

9 REPLIES 9

Hi Cynthia,

Don't see any function log here, please go to below link and see if there are any function log( like gs.log etc) and comment that line, give a try.

https://yourinstance/sys_script_include.do?sys_id=32678a3453b72300ff25ddeeff7b1213&sysparm_record_target=sys_script_include&sysparm_record_row=1&sysparm_record_rows=20&sysparm_record_list=nameCONTAINStransfer%5EORDERBYDESCsys_updated_on

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hello:  Sorry for the delay in responding.  Unfortunately, there is no reference to any log in the script included.  To clarify, I am using the OOB Universal Request Transfer button, when attempting to transfer.  

Hello, i am trying to use the OOB Universal Transfer Button (No Transfer Case) for HRSD to other departments and something wrong happens to condition of the UI Action of this button. Could u plz inform me which condition use to display this particular UI Action button?

 

Community Alums
Not applicable

Share the UI action script here.

Cynthia L_
Giga Guru

The gslog statement ended up being in the HRCreateDepartmentTicket script include.  Thank you for your assistance.