ā10-05-2018 11:33 AM - edited ā10-05-2018 11:35 AM
Solved! Go to Solution.
ā10-05-2018 12:40 PM
ā10-05-2018 11:43 AM
ā10-05-2018 11:48 AM
Hi,,
Gadget is on Agent side,I do see following in Agent Locallog when supervisor trying to Force logout agent so i tried writing logic based on label below.In developer tool console i am getting label as empty so not sure what am missing.
<reasonCode>
<category>LOGOUT</category>
<code>999</code>
<forAll>true</forAll>
<id>20</id>
<label>Supervisor Initiated</label>
<systemCode>true</systemCode>
ā10-05-2018 11:53 AM
ā10-05-2018 12:01 PM - edited ā10-05-2018 12:02 PM
I think you may be right because i tried printing alert as soon as agent Login to finesse and getting EMPTY for label with below code.
var rCode = user.getReasonCodeLabel();
Following is printing in Locallogs with Agent(User) info not Supervisor, so do you know how can i find the request is from Supervisor.
<data>
<user>
<dialogs>/finesse/api/User//Dialogs</dialogs>
<extension></extension>
<firstName>AGENTNAME</firstName>
<lastName>AGENTNAME</lastName>
<loginId>AGENTID</loginId>
<loginName>eAGENTID</loginName>
<mediaType>1</mediaType>
<pendingState></pendingState>
<reasonCode>
<category>LOGOUT</category>
<code>999</code>
<forAll>true</forAll>
<id>20</id>
<label>Supervisor Initiated</label>
<systemCode>true</systemCode>
<uri>/finesse/api/ReasonCode/20</uri>
</reasonCode>
<reasonCodeId>20</reasonCodeId>
<roles>
<role>Agent</role>
</roles>
<settings>
<wrapUpOnIncoming>REQUIRED</wrapUpOnIncoming>
</settings>
<state>LOGOUT</state>
<stateChangeTime>2018-10-05T18:21:27.295Z</stateChangeTime>
<teamId>TEAMID</teamId>
<teamName>TEAMNAME</teamName>
<uri>/finesse/api/User/AGENTID</uri>
</user>
</data>
ā10-05-2018 12:06 PM
I have printed all labels in NOT_READY and LOGOUT but don't see 'Supervisor Initiated' configured i think this is system generated with code 999.
ā10-05-2018 12:29 PM
ā10-05-2018 12:37 PM
Thanks for all your help, Do you think of any other condition where we can get at least some info to build logic?
ā10-05-2018 12:40 PM
ā10-10-2018 08:11 AM
Hi Dekwan,Good Morning,
I have executed multiple scenarios and noticed we are getting Supervisor Initiated in user.getReasonCodeLabel() when supervisor ForceLogut agent when agent is in READY status but not getting Supervisor Initiated in user.getReasonCodeLabel() when agent in NOT_READY status.Any insight?
ā10-10-2018 09:39 AM
ā10-10-2018 10:20 AM
When i enable console logs i see following in both when Agent is READY AND NOT_READY.
<category>LOGOUT</category>
<code>999</code>
<forAll>true</forAll>
<id>20</id>
<label>Supervisor Initiated</label>
<systemCode>true</systemCode>
<uri>/finesse/api/ReasonCode/20</uri>
But when i print user object, in READY scenario in user.getReasonCodeLabel() we will get Supervisor Initiated but in NOT_READY am getting Agent Not_ready reason code like Break.....
Does this answer your question?
ā10-10-2018 10:39 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide