How to default AWA Inbox Status to Available when user logs in?

Nathan Okh
Mega Sage

How does one default the inbox status of a user who just signs into Agent Workspace?

I found this API/Javascript that looks like it'll work but I'm not sure how to add it in...

find_real_file.png

var agent = sn_awa.Agent.get("<user_sys_id>");
var presence = agent.setPresence({
    sys_id: <presence_sys_id>,
    channels: [{
        sys_id: "<channel_sys_id>",
        available: true // or false
    }]
});

 

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi @Nathan Okh 

create a Script Action (Table sysevent_script_action) with the following configuration:

Note:
In case you should see 2x "login" event name, try out which of the two is the correct one.

Kind regards
Maik

Hello Maik,

 

Can you please help me on below query if possible.

https://community.servicenow.com/community?id=community_question&sys_id=99e22a13db0185d0a5388263059619c1

Hi @Nathan Okh 

In case you think I was able to answer your question, I would be happy if you mark the appropriate response as "correct" so that the question will appear as resolved for other users who may have a similar question in the future.

If not, please tell me what you are still missing.

Many thanks & kind regards
Maik