How to make user to available after 10minutes AWA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 02:45 AM
Hi All
Can any one guide me the script of Business rule how can we make user to Available after 10minutes
Under user table we have last login time once it cross 10 minutes user states under AWA set to Available
Automaticly it should update as Available after last login time cross 10minutes
Please can any one help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 02:57 AM - edited 11-03-2023 03:02 AM
Hi,
You can write a new script action (Responding to Events | ServiceNow Developers) on user's login event.
From that script action, you can fire a scheduled event for current time + 10 minutes (GlideSystem | ServiceNow Developers) if user is the part of "awa_agent_presence" table with status is not available.
As part of this scheduled event, you can write another script action, which will update the table "awa_agent_presence" table with status available for that user.
GlideSystem | ServiceNow Developers
Thanks.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 03:46 AM
Hi @Saurabh Gupta Thanks for solution can you give detail script please
Appreciate
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2023 12:28 AM
Hi,
Step 1: Register(Create) an event "awa_set_online".
Step 2: Script action on login event
Step 3: Script action on "awa_set_online" event
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 12:56 PM
Hi,
Thanks and Regards,
Saurabh Gupta