How will use webApi retrieve multiple result in JavaScript.
Please provide any sample code for learning.
How will use webApi retrieve multiple result in JavaScript.
Please provide any sample code for learning.
Hi Mahendra,
Thanks for your information about the webapi.
I hope the provided links has answered your question, so marking them as "answers". If not please feel free and let us know.
From CRM REST Builder:
Xrm.WebApi.online.retrieveMultipleRecords("account", null).then(
function success(results) {
for (var i = 0; i < results.entities.length; i++) {
var accountid = results.entities[i]["accountid"];
}
},
function(error) {
Xrm.Utility.alertDialog(error.message);
}
);
Hi,
First if you don't have experience in writing webapi request, download Rest builder where you can design your request and can use it in the webresource.
Download link
Here is how to use rest builder to generate query
www.wipfli.com/.../tc-crm-rest-builder-dynamics-crms-web-api
Some other samples
André Arnaud de Cal... 291,883 Super User 2024 Season 2
Martin Dráb 230,569 Most Valuable Professional
nmaenpaa 101,156