I am trying to change the agent from Ready to "Not Ready- Meeting" using "user.setState" function , but it is not working for me. Can someone shed some light on what I am doing wrong?
http://{ip}:8080/finesse/api/User/8094542/ReasonCodes?category=NOT_READY
****
<ReasonCode>
<uri>/finesse/api/ReasonCode/8</uri>
<category>NOT_READY</category>
<code>6</code>
<label>Meeting</label>
<forAll>false</forAll>
</ReasonCode>
*****
In the js code, I have
***
user.setState(states.NOT_READY,'6',{
success: makeStateSuccess,
error: makeStateError
});
****
Appreciate any input.
Thanks,
R.