Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Re: SAP Contact Center 7.0 - C# ClientCore Interface

$
0
0
Hi Robert,
You do not mention what is the url parameter that you use with your xml request. You might be using wrong url parameter and that is why you get malformed request. If you just need to update users own profile without any start time and end time then you can use this request.

 

var profileurlparams =

"request_id=" + reqid

"&presenceguid=" + p.Key.ToUpper()
"&targetuserguid=" + PhoneData.userid.ToUpper()
"&targetusertimediff=180;";
phone.sendXMLRequest(regid, "/cdt_xml/xml/xml_prs.htm", profileurlparams);
Note! 1) with request id you can define your own logic. Basically if you might have multiple xml requests flying at the same time then you need different request id:s. There is also limit how many simultaneous xml request can be used (something like up to 5). 2) use upper case with guid:s 3) your own userid can be found from workspace data (in my example it is held in PhoneData object). 4) You might need to implement time difference logic. Here it is the users clock difference compared to server clock (basically time zone difference) 5) p is here the profile object. data for the objects can be found from the workspace data.
Part 2:
You probably want to enforce this update to happen immediately on CEM server (otherwise you will be trusting to periodic check done by the server and that might take some time). You also might need additional information in online monitoring.
In simple case this could be maybe done with setProfile but I would prefer to use setStringValue (otherwise you wil first miss the profile name from the online monitoring).

 

var profilestr = "Status=" + avail + ";Reason=" + p.AbsenceReason + ";GUID=" + p.Key.ToUpper() + ";Name=" + p.Name + ";ContactGUID=;QueueGUID=;Scripting=;";

 

phone.setStringValue("profile", profilestr);


That's it. I hope this helps you forward.

Best regards,

Ville


Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>