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 :)