Answered by:
Old code for CRM 2011 is shown in red any idea what should i replaced it

Question
-
Hi All,
As our CRM 2011 is going to have a upgrade to CRM 2013 in January 2014
Hence we are having issue with the below codeThe items highlighted in red will have issues in all browsers, including Internet Explorer
And Items highlighted in blue may have issues in Chrome ,safari or Firefox.Any help on this is much appreciated
Thanks
Pradnya
Pradnya07
Friday, November 8, 2013 8:52 AM
Answers
-
that part in red is pointing to the 2007 end point, that is the crm 4 end point that is going to be gone in 2003
the 2011 looks like this:
var xmlhttp = new XMLHttpRequest(); xmlhttp.open("POST", this.server + "/XRMServices/2011/Organization.svc/web",(fUserCallback!=null)); xmlhttp.setRequestHeader("Accept", "application/xml, text/xml, */*");
and will remain like this on 2013
I Hope I could help. If I have answered please mark as 'Answer'. If was just helpful, please vote. Thanks and happy coding! Bruno Lucas, http://dynamicday.wordpress.com/
Friday, November 8, 2013 9:07 AM -
Hi,
Your code retrieving data using fetchXML but for executing fetchXML you are using older web service(CRM 4.0).
Please check following link how to execute fetchXML using dynamics CRM 2011 SOAP service.
http://vikramxrm.blogspot.com/2013/10/show-closed-and-open-activities-counter.html
Your fetchXML will remain same and rest of code from var xml ="<soap:envelop..... " is not needed.
I am using XrmServiceToolkit library(many thanks for this to Jamie and Daniel) you can download it from CodePlex and create JS web resource and paste entire library code into it and attach created JS web resource in your entity form.
Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
Vikram !
Friday, November 8, 2013 9:19 AM
All replies
-
that part in red is pointing to the 2007 end point, that is the crm 4 end point that is going to be gone in 2003
the 2011 looks like this:
var xmlhttp = new XMLHttpRequest(); xmlhttp.open("POST", this.server + "/XRMServices/2011/Organization.svc/web",(fUserCallback!=null)); xmlhttp.setRequestHeader("Accept", "application/xml, text/xml, */*");
and will remain like this on 2013
I Hope I could help. If I have answered please mark as 'Answer'. If was just helpful, please vote. Thanks and happy coding! Bruno Lucas, http://dynamicday.wordpress.com/
Friday, November 8, 2013 9:07 AM -
Hi,
Your code retrieving data using fetchXML but for executing fetchXML you are using older web service(CRM 4.0).
Please check following link how to execute fetchXML using dynamics CRM 2011 SOAP service.
http://vikramxrm.blogspot.com/2013/10/show-closed-and-open-activities-counter.html
Your fetchXML will remain same and rest of code from var xml ="<soap:envelop..... " is not needed.
I am using XrmServiceToolkit library(many thanks for this to Jamie and Daniel) you can download it from CodePlex and create JS web resource and paste entire library code into it and attach created JS web resource in your entity form.
Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
Vikram !
Friday, November 8, 2013 9:19 AM -
Thanks a load the code stills works like a charm
Pradnya07
Friday, November 8, 2013 9:38 AM