How to make user to available after 10minutes AWA

Research
Tera Guru

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 

Research_0-1699004496526.png

 

 

Research_1-1699004668076.png

Automaticly it should update as Available after last login time cross 10minutes

Please can any one help

 

 

7 REPLIES 7

Saurabh Gupta
Kilo Patron
Kilo Patron

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

Research
Tera Guru

Hi @Saurabh Gupta   Thanks for solution can you give detail script please 
Appreciate 

Thanks.

Hi,

Step 1: Register(Create) an event "awa_set_online".

Step 2: Script action on login event

SaurabhGupta_0-1699082568026.png

Step 3: Script action on "awa_set_online" event

SaurabhGupta_1-1699082891947.png

 


Thanks and Regards,

Saurabh Gupta

Hi,

 

 


Thanks and Regards,

Saurabh Gupta