Client Script is not running properly in Agent Workpace

Gpope
Tera Contributor

Hi Community! 

 

I have this strange issue happening in Agent Workspace. I've created a BR Scratchpad to get current user assignment Group. 

Also I've created a Client Script to populate assignment group and Assigned to if they create a new case and they are part of Scratchpad group. 

 

This is working perfect in NativeUI, and almost perfect in Agent Workspace except for this issue Im facing; 

 

When I try to create a new case from another place that is not ALL in Workspace Lists, Assigned To is not populating even when In my logs the user's sys id is showing correctly. 

 

Do you know what can be happening ? 

THANKS!

 

BR scratchpad: 

Gpope_1-1711122245441.png

Client Script

 

Gpope_0-1711122232672.png

 

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

Why not use g_scratchpad to set assigned to?

g_form.setValue('assigned_to',g_scratchpad.userName);


Please mark this response as correct or helpful if it assisted you with your question.

I tried all different ways. Also with the scratchpad and in NativeUI and from Agent workspace -> All , works perfectly . 

 

But when it's another list from the agent workspace it doesn't work ONLY the assign to 

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @Gpope , 

 

Where do this mean ?

"But when it's another list from the agent workspace it doesn't work ONLY the assign to "



Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Hi @Sohithanjan G : 

Gpope_0-1711129651550.png

Gpope_1-1711129708844.png

If I click in All and then Create New from there all works fine. 

If I select any other ( My cases - My open - Any inside My Lists ), then create New, Assigned to does not populate but assignment group it does.