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:
I have the same question (0)
  • 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

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard

Featured topics

Loading complete