web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Apps - Microsoft Dataverse
Answered

How to Retrieve a set of records with

Like (0) ShareShare
ReportReport
Posted on 28 Mar 2023 16:07:56 by 264

Hi, guys!

There is an example in documentation.

So  I can get a specific record.

 

var Sdk = window.Sdk || {};
Sdk.RetrieveRequest = function(entityReference, columns) {
 this.entityReference = entityReference;
 this.columns = columns;
};
Sdk.RetrieveRequest.prototype.getMetadata = function () {
 return {
 boundParameter: null,
 parameterTypes: {},
 operationType: 2, // This is a CRUD operation. Use '0' for actions and '1' for functions
 operationName: "Retrieve",
 };
};
var entityReference = {
 entityType: "account",
 id: "d2b6c3f8-b0fa-e911-a812-000d3a59fa22"
};
var retrieveRequest = new Sdk.RetrieveRequest(entityReference, ["name"]);
Xrm.WebApi.online.execute(retrieveRequest)
.then(function (response) {
...

 

But how to Retrieve a set of records with Xrm.WebApi.online.execute ? There is no example.

Categories:
  • Verified answer
    Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on 28 Mar 2023 at 16:54:41
    Re: How to Retrieve a set of records with

    Xrm.WebApi.online.execute does not support the retrievemultiple, you will need to use 

    Xrm.WebApi.retrieveMultipleRecords 

    https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-webapi/retrievemultiplerecords

     

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete