web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How will use webApi retrieve multiple result in JavaScript.

(0) ShareShare
ReportReport
Posted on by 35

How will use webApi retrieve multiple result in JavaScript.

Please provide any sample code for learning.

I have the same question (0)
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    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

    github.com/.../CRMRESTBuilder

    Here is how to use rest builder to generate query

    www.wipfli.com/.../tc-crm-rest-builder-dynamics-crms-web-api

    Some other samples

    carldesouza.com/.../

    docs.microsoft.com/.../retrievemultiplerecords

  • Verified answer
    Miguel Lourenco Profile Picture
    Microsoft Employee on at

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

       }

    );

  • Haansi Profile Picture
    1,433 Moderator on at

    I hope the provided links has answered your question, so marking them as "answers". If not please feel free and let us know.

  • Rajeshkanna Profile Picture
    35 on at

    Hi Mahendra,

    Thanks for your information about the webapi.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 51 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans