Hi All,
I want to practice ODATA will you please share some good examples for beginners to learn . It will be helpful for me .
Thank you
*This post is locked for comments
Hello Surya;
I'd recommend the following URLs:
msdn.microsoft.com/.../gg334767.aspx
msdn.microsoft.com/.../gg309461(v=crm.7).aspx
msdn.microsoft.com/.../gg334279.aspx
msdn.microsoft.com/.../gg334427(v=crm.7).aspx
http://missdynamicscrm.blogspot.ca/2014/10/tips-and-trick-odata-crm-2011-2013.html
http://journeyintocrm.com/archives/1084
Hi Dynamics Surya,
You can use also tool for ODATA download from following link DynamicsXRMTools2015 and import as solution. You can get also information from download page
dynamicsxrmtools.codeplex.com/releases
Hello Dynamics Surya,
You can download the CRM Restbuilder crmrestbuilder.codeplex.com
and then generate OData for testing.
Regards
GetAccount: function (accountId, successCallback, errorCallback) {
//OData URI to get address information from parent account record
var oDataURI = Xrm.Page.context.getClientUrl()
+ "/XRMServices/2011/OrganizationData.svc/"
+ "AccountSet(guid'" + accountId + "')"
+ "?$select="
+ "Address1_City,"
+ "Address1_Country,"
+ "Address1_Line1,"
+ "Address1_Line2,"
+ "Address1_Line3,"
+ "Address1_StateOrProvince,"
+ "Address1_PostalCode";
//Asynchronous XMLHttpRequest to retrieve account record
var req = new XMLHttpRequest();
req.open("GET", encodeURI(oDataURI), true);
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function () {
//debugger;
if (this.readyState == 4 /* complete */) {
req.onreadystatechange = null; //avoids memory leaks
if (this.status == 200) {
//parse the response string as a JSON object into the successCallback method.
successCallback(JSON.parse(this.responseText).d);
}
else {
errorCallback(accountId);
};
req.send();
},
My friend download SDK, it has sample code which should help you, if you have any doubt you can post your query here.
Thanks
If you have a test cloud app account or a relational database, you can practice in creating OData endpoints using Skyvia webtool. The list of connectors it supports can be found here: https://skyvia.com/connect/
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Community Member 2
HR-09070029-0 2
UllrSki 2