hello,
I use finesse 10.5 to develop my site. I want to know if we don't create the reason code for not ready, which reason code id I can use for a not ready by defaut?
I see in the finesse desktop, if we don't declare the reason code for not ready, we can choose "not ready" when the agent' s state is "ready".
And when I choose "not ready", I have the notification from finesse with reason code id = -1 and state "not ready"
Here is my code when the state is from Ready to Not Ready(no reason code for not ready):
var request = require("request");
var options = { method: 'PUT',
url: 'http://finesse3.cc.tel.mcra.fr/finesse/api/User/7111003',
headers:
{ authorization: 'Basic NzExMTAwMzo3MTExMDAz',
'content-type': 'application/xml' },
body: '<User><state>NOT_READY</state><extension>7111003</extension><reasonCodeId>-1</reasonCodeId></User>' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
thank you very much !