cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
480
Views
2
Helpful
1
Replies

Change state from Ready to NotReady-Meeting

ravindra999
Level 1
Level 1

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.

1 Reply 1

dlender
Level 6
Level 6

You have to use the reasoncode ID not the actual reasoncode.