cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

146
Views
0
Helpful
1
Replies
Highlighted
Beginner

reason code "not ready" by defaut (finesse 10.5)

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 !

Everyone's tags (5)
1 REPLY 1
Cisco Employee

Re: reason code "not ready" by defaut (finesse 10.5)

Hi,

If you do not have any reason codes configured in the system, you just don't send any reason code tag in the request:

<User>
   <state>NOT_READY</state>
</User>

https://developer.cisco.com/docs/finesse/#!userchange-agent-state/userchange-agent-state

Thanx,

Denise

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here