- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2021 12:16 PM
When an Agent clicks the workspace application link, I want to automatically set their availability to Available so the agents do not have to set this themselves. Anyone have any ideas if this possible?
Solved! Go to Solution.
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2021 08:54 PM
Hi
each time a user logs in an event is fired. With the help of a script action you can react on that event and set the availability.
And for an easy copy and paste of the code:
var gr = new GlideRecord("awa_agent_presence");
gr.addQuery("agent", event.user_id.toString());
gr.query();
if (gr.next()) {
gr.setDisplayValue("current_presence_state", "Available");
gr.update();
}
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 07:04 PM
Hi @Maik Skoddow , I followed the same solution, which was given by you, created a script action and used OOTB event "login" on sys_user table. activated the script action tested but not working. Any solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2025 06:48 AM
Hi @Maik Skoddow , I followed the same solution, which was given by you, created a script action and used OOTB event "login" on sys_user table. activated the script action tested but not working. Any solution?
