locked
Fetch() depricated? RRS feed

  • Question

  • Hi

    Earlier I think I've seen some place that the Fetch() method of the CrmService is depricated, and will not be available in future versions.
    Is this right?

    The fetch method have some clear advantages over using queryexpressions:
    - It can retrieve data from multiple entities
    - It's considerable faster than queries using queryexpressions (probably because it translates directly into SQL)
    - It's much more flexible to use when building dynamic queries in the code
    - It's much easier to use when quering the CrmService from other platforms and tools than Visual Studio and Windows

    The only drawback I see using Fetch() is that you will have to write the fetch query and parse the returned XML yourself, but with the right knowledge and tools, that is not a problem.

    Any thought around this, or anyone who can confirm if this method is depricated or not?
    Best Regards Jens Egil Evensen
    Monday, January 11, 2010 10:39 AM

Answers

  • Sorry for not making it clearer
    Fetch is not deprecated
    Fetch is available in v5

    XrmLinq is not part of the sdk, it is a custom linq to crm library that we built to make it easier on dynamics crm developers to get their head around the crm sdk. Most devs have worked with linq to sql, xml, sharepoint ...etc etc, this is another linq library, same query syntax so you don't have to learn queryexpressions or fetchxml.
    XrmLinq - LINQ to Dynamics CRM http://www.xrmlinq.com - The smart way to query crm
    Monday, January 11, 2010 10:29 PM

All replies

  • Hi, Jens.

    Fetch message is used to retrieve data almost in all main grids (except activities with selected record types). So I don't think it will deprecated in future versions...

    Truth is opened the prepared mind

    My blog (english)
    Мой блог (русскоязычный)free countersLocations of visitors to this page
    Monday, January 11, 2010 10:44 AM
    Moderator
  • Hi

    Fetch is not deprecated and will not be in v5.

    Regarding the drawback you mention, you should try out LINQ to CRM library, it uses FetchXml, let's you write LINQ queries directly against CRM and returns data in a strongly typed set.

    See the link below for example queries
    http://www.xrmlinq.com/code/strongly-typed-queries.aspx
    XrmLinq - LINQ to Dynamics CRM http://www.xrmlinq.com - The smart way to query crm
    Monday, January 11, 2010 7:32 PM
  • Hi

    Fetch is not depreciated and will not be in v5.

    Regarding the drawback you mention, you should try out LINQ to CRM library, it uses FetchXml, let's you write LINQ queries directly against CRM and returns data in a strongly typed set.

    See the link below for example queries
    http://www.xrmlinq.com/code/strongly-typed-queries.aspx
    XrmLinq - LINQ to Dynamics CRM http://www.xrmlinq.com - The smart way to query crm

    You contradict, deprecated false and in v5 true or deprecated true and in v5 false.  Can't be both false.

    This XrmLinq is not part of the sdk, correct?
    Monday, January 11, 2010 9:04 PM
  • Sorry for not making it clearer
    Fetch is not deprecated
    Fetch is available in v5

    XrmLinq is not part of the sdk, it is a custom linq to crm library that we built to make it easier on dynamics crm developers to get their head around the crm sdk. Most devs have worked with linq to sql, xml, sharepoint ...etc etc, this is another linq library, same query syntax so you don't have to learn queryexpressions or fetchxml.
    XrmLinq - LINQ to Dynamics CRM http://www.xrmlinq.com - The smart way to query crm
    Monday, January 11, 2010 10:29 PM