There are two ways of logging off from an active session within CRM On Demand
// pass the url in that case no need to set the header
// only set sessionid
string logoffUrlString = “servername/Services/Integration;jsessionid=” + SessionID + “?command=logoff”;
HttpWebRequest req = HttpWebRequest)WebRequest.Create(logoffUrlString);
// make the HTTP call
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
Or else
string logoffUrlString = “servername/Services/Integration?command=logoff”;
HttpWebRequest req = HttpWebRequest)WebRequest.Create(logoffUrlString);
// set the session id in header
req.Headers[“JSESSIONID”] = SessionID;
// make the HTTP call
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
Within Web Services Utilization List of Admin Tab in the CRM On Demand application we can see the login and logout info.
That’s it ..
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.

Hi,
great site! very interesting!
Bye, Andrea from italy!
LikeLike
Hi Nishant,
I have a query.
I need to fetch data from Siebel CRm and then populate those values in a CRM lookup type field.
Wat will be the best way to do this??
LikeLike
siebel blog: http://siebeltipsntricks.blogspot.com
LikeLike