02-06-2015 12:29 PM
Hi,
I used the non-gadget sample in to custom .net web application. to get it to work i have used the redirect rules give to me in my earlier posts, i am kind of struck at point where i need to pass in the reason code for the agent to sign out. i have tried 2 approaches to get the reason codes.
First Approach
$.ajax({
type: 'GET',
url: reasonCodeUrl,
headers: {
"Authorization": "Basic " + btoa(username + ":" + _password),
},
dataType: 'xml', or 'jsonp'
success: function () {
alert('Success!');
}
});
Second Approach.
this.getReasonCodes = function (agentid, handler, errHandler) {
var method = "GET",
url = _webappPath + "/api/User/" + agentid + "/ReasonCodes?category=NOT_READY";
_sendReq(url, method, null, null, handler, errHandler, null, null);
};
Has any one faced this issue before, any help would be appreciated.
Aziz
02-09-2015 12:04 PM
Ok,
I was able to narrow this down, when i ever i am trying to send a GET request with parameters it doesn't seem to work but if i just retrieve a single reason code, it seems to work. so my question over here is why does this url work
http://myurl/finesse/api/User/70000/ReasonCode/12
while this doesn't
http://myurl/finesse/api/User/70000/ReasonCodes?catergory=NOT_READY
i have looked at the _sendReq function in finesseongadet.js file and have changed the flag processData to true as well, it still doesn't seem to work.
am i missing some thing over here... any help would be appreciated...
04-22-2015 11:48 AM
Hi Aziz,
I am trying to figure out the amount of effort required to build the complete call control toolbar by utilizing the non-gadget sample.
Based on your above post, it looks like you have been implementing agent status and call control using non-gadget sample, could you help to understand an estimated effort required to build the non-gadget based cti toolbar in an existing custom CRM web application?
Thanks,
Roshan
04-22-2015 01:44 PM
the non-gadget is a good example to start with as a POC but i would recommend using the finesse javascript libs and the caxl libs in CDN.
there is a lot of functionality that needs to be put in case you are starting from scratch and the non-gadget source wont suffice your needs. it will require considerable effort and time just to emulate the call control since you will have a lot of factors that needs to be considered like failovers, updating the dialog variables etc..
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: