Client Script is not running properly in Agent Workpace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 08:42 AM - edited 03-22-2024 08:44 AM
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:
Client Script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 09:54 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 10:01 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 10:41 AM
Hi @Gpope ,
Where do this mean ?
"But when it's another list from the agent workspace it doesn't work ONLY the assign to "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 10:50 AM
Hi @Sohithanjan G :
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.