locked
Statement work in MS CRM 2011? RRS feed

  • Question

  •  var fetchResult = CrmServiceToolkit.Fetch(fetchXml); //In Javascript

    Does the above statement work in CRM 2011??

    When i am using this statement, it is givin as undefined.

    Wednesday, June 1, 2011 8:41 AM

Answers

  • It may or may not work with CRM 2011, but the code posted in the initial post does require that the CRM Web Service Toolkit is installed, and installation instructions should be available through the CodePlex page I linked to earlier
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
    Thursday, June 2, 2011 11:15 AM
    Moderator

All replies

  • This code uses the CRM Web Service Toolkit which is a set of client extensions. I can't see anything in the CodePlex project site that indicates that this does work on CRM 2011, but I suggest you post a discussion there to see if will work
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Wednesday, June 1, 2011 11:15 AM
    Moderator
  • So when i use this statement, do i have to add some other library or something like that?
    Thursday, June 2, 2011 2:53 AM
  • I think what David is saying is that the since the toolkit is for CRM 4.0 you probably cannot use it at all in CRM 2011 until it has been rewritten.

    In CRM 2011 the recommended way to access CRM from javascripts is using the REST endpoint. Look it up in the SDK, there are good examples there as well.

     


    Gustaf Westerlund, CEO and Chief Architect at CRM-Konsulterna in Sweden
    Thursday, June 2, 2011 6:16 AM
  • It may or may not work with CRM 2011, but the code posted in the initial post does require that the CRM Web Service Toolkit is installed, and installation instructions should be available through the CodePlex page I linked to earlier
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
    Thursday, June 2, 2011 11:15 AM
    Moderator