I am learning about ODATA and I saw the following code explaining it:
function autopopulating()
{
var serverurl= Xrm.Page.context.getClientUrl();
var queryurl= serverurl + "/xrmservices/2011/OrganizationData.svc/AccountSet?$select=Name,AccountNumber";
var req= new XMLHttpRequest();
req.open("GET",queryurl, false);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.send();
var results= JSON.parse(req.responseText).d.results;
if(results!=null && results.length>0)
{
}
}
I understand the JSON. parse(req.responseText) part. My question is what is the purpose of d.results ?
*This post is locked for comments
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156