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

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @Gpope 

If you select any other ( My cases - My open - Any inside My Lists ), then its opening, already created records then , isNewRecord returns false. Hence its not working. But I am surprised how assignment group is populating. 


🙂

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..:)

@Sohithanjan G  when I select any other list but I click in CREATE NEW ui action. so the record will be new