Skip to content

Commit 2fec490

Browse files
Live publish for 09 August 2024.
2 parents 7a65953 + bbef5ee commit 2fec490

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

powerapps-docs/developer/data-platform/fetchxml/page-results.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Page results using FetchXml
33
description: Learn how to use FetchXml to page results when you retrieve data from Microsoft Dataverse.
4-
ms.date: 02/29/2024
4+
ms.date: 08/09/2024
55
ms.reviewer: jdaly
66
ms.topic: how-to
77
author: pnghub
@@ -15,6 +15,7 @@ contributors:
1515
- dasussMS
1616
- apahwa-lab
1717
- DonaldlaGithub
18+
- tdashworth
1819
---
1920
# Page results using FetchXml
2021

@@ -143,7 +144,7 @@ static EntityCollection RetrieveAll(IOrganizationService service, string fetchXm
143144
// Set the fetch paging-cookie attribute with the paging cookie from the previous query
144145
fetchNode.SetAttributeValue("paging-cookie", results.PagingCookie);
145146

146-
fetchNode.SetAttributeValue("page", page++);
147+
fetchNode.SetAttributeValue("page", ++page);
147148
}
148149
return new EntityCollection(entities);
149150
}
@@ -513,7 +514,7 @@ static async Task<List<JsonObject>> RetrieveAll(HttpClient client,
513514
fetchNode.SetAttributeValue("paging-cookie", pagingCookie);
514515

515516
// Increment the fetch page attribute value
516-
fetchNode.SetAttributeValue("page", page++);
517+
fetchNode.SetAttributeValue("page", ++page);
517518
}
518519

519520
// Return the records from all requests
@@ -529,7 +530,7 @@ You can adapt the [Quick Start: Web API sample (C#)](../webapi/quick-start-conso
529530
```csharp
530531
#region Web API call
531532

532-
string fetchXml = @"<fetch count='3' page='1'>
533+
string fetchXml = @"<fetch>
533534
<entity name='contact'>
534535
<attribute name='fullname'/>
535536
<attribute name='jobtitle'/>

powerapps-docs/developer/data-platform/org-service/queryexpression/page-results.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Page results using QueryExpression
33
description: Learn how to use QueryExpression to page results when you retrieve data from Microsoft Dataverse.
4-
ms.date: 05/12/2024
4+
ms.date: 08/09/2024
55
ms.reviewer: jdaly
66
ms.topic: how-to
77
author: pnghub
@@ -98,14 +98,19 @@ After each request, the method checks the [EntityCollection.MoreRecords property
9898
/// </summary>
9999
/// <param name="service">The authenticated IOrganizationService instance.</param>
100100
/// <param name="query">The QueryExpression query</param>
101+
/// <param name="page">The page size to use. Defaults to 5000</param>
101102
/// <returns>All the records that match the criteria</returns>
102-
static EntityCollection RetrieveAll(IOrganizationService service, QueryExpression query)
103+
static EntityCollection RetrieveAll(IOrganizationService service,
104+
QueryExpression query,
105+
int page = 5000)
103106
{
104107
// The records to return
105108
List<Entity> entities = new();
106109

107110
// Set the page
108111
query.PageInfo.PageNumber = 1;
112+
// Set the count
113+
query.PageInfo.Count = page;
109114

110115
while (true)
111116
{
@@ -150,10 +155,6 @@ static void Main(string[] args)
150155
QueryExpression query = new("contact")
151156
{
152157
ColumnSet = new ColumnSet("fullname", "jobtitle", "annualincome"),
153-
PageInfo = new PagingInfo() {
154-
// Set the page size
155-
Count = 25;
156-
},
157158
Orders = {
158159
{
159160
new OrderExpression(
Binary file not shown.

powerapps-docs/maker/model-driven-apps/embed-powerbi-report-in-system-form.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Embed a Power BI report in a model-driven app main form | MicrosoftDocs"
33
description: Learn how to embed a Power BI report in a model-driven app form
4-
ms.date: 05/06/2024
4+
ms.date: 08/08/2024
55
ms.topic: "how-to"
66
author: "sriharibs-msft"
77
ms.subservice: mda-maker
@@ -12,9 +12,6 @@ search.audienceType:
1212
---
1313
# Embed a Power BI report in a model-driven app main form
1414

15-
> [!IMPORTANT]
16-
> There's a better way to add a Power BI report to a model-driven app form. More information: [Use the Power BI report control to add a report](powerbi-control.md)
17-
1815
You can use Power BI reports in Power Apps model-driven apps to bring rich reporting and analytics to your main forms and empower your users to accomplish more. This unlocks the power to aggregate data across systems, and tailor it down to the context of a single record.
1916

2017
## Prerequisites

powerapps-docs/maker/model-driven-apps/powerbi-control.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ ms.author: matp
66
ms.service: powerapps
77
ms.subservice: mda-maker
88
ms.topic: how-to
9-
ms.date: 10/26/2022
9+
ms.date: 08/08/2024
1010
ms.custom: template-how-to
1111
---
1212
# Use the Power BI report control to add a report (preview)
1313

14-
[!INCLUDE [cc-beta-prerelease-disclaimer](../../includes/cc-beta-prerelease-disclaimer.md)]
14+
> [!IMPORTANT]
15+
> The Power BI report control is retired on July 31, 2024. We recommend removing all Power BI report controls from your model-driven apps and use Power BI system dashboard embedding instead. More information: [Create or edit a Power BI embedded system dashboard](create-edit-powerbi-embedded-page.md)
1516
1617
Add a Power BI report to a model-driven app form using the Power BI report control. This unlocks the power to aggregate data across systems, and tailor it down to the context of a single record.
1718

0 commit comments

Comments
 (0)