Can I write Linq and QueryExpression on client side ? please can you share a link about it is possible. is Fetch only way for client side ?
Can I write Linq and QueryExpression on client side ? please can you share a link about it is possible. is Fetch only way for client side ?
LINQ & QueryExpression are of C# native which is server side scripting language.
You have to use client side scripting language like js/jQuery to call CRM sdk with the help of Orgservice, web api or OData Service. For simple queries you can use Rest Builder to compose direct queries, fetchxml for further extended queries.
You can use fecthxml to retrieve at client side.
Hi Partner,
In general, expressions in LINQ to Entities are evaluated on the server, so the behavior of the expression should not be expected to follow CLR semantics.
docs.microsoft.com/.../linq-to-entities
In addition, Query Expression is used in server side code for query CRM data, it is not used in client side. If you want you can write your queryexpression and can use SoapLogger application to convert that code into SOAP request (which is client side)
Dynamics 365 SOAP Logger:carldesouza.com/dynamics-365-soap-logger
Query Expression: docs.microsoft.com/.../gg328300(v=crm.8)
Hope it would help.
Have a nice day.
Johnny
Yes, you cannot write Linq/ query expression client side. You could use simple retrievemultiple or fetchxml.
Hope this helps.
André Arnaud de Cal...
292,489
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156