Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Odata V4.0 URI

$
0
0

Hi all ,

We are using Odata v4.0 URI  in our js .

Tried  below different queries   got from  different blogs  . But nothing is working . can someone help us   ?

Please test and provide us the  solution .

Below queries are not working

a) var oDataURI = Xrm.Page.context.getClientUrl()+"/api/data/v8.0/"+"accounts?$select=name&$filter=accountid/Id eq (guid"'+accountGUID+'") ";
var req = new XMLHttpRequest();
req.open("GET", oDataURI, true);
-----------------------------------------------------------------------------------------------------

b)var oDataURI = Xrm.Page.context.getClientUrl()+"/api/data/v8.0/"+"accounts"+"(" + id + ")"+?$select=name";
var req = new XMLHttpRequest();
req.open("GET", oDataURI, true);
-
-------------------------------------------------------------------------------------------------------------------------

c)var oDataURI = Xrm.Page.context.getClientUrl()+"/api/data/v8.0/"+"accounts?$select=name&$filter=accountid eq '"+accountguid+"'";
var req = new XMLHttpRequest();
req.open("GET", oDataURI, true);
--------------------------------------------------------------------------------------------------------------------

Thank you :)


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>