Skip to content

Commit 627702f

Browse files
Live publish for 27 June 2024.
2 parents 56c4d8e + 9b89273 commit 627702f

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

powerapps-docs/maker/data-platform/data-retention-view.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ description: Learn how to access ready only data that is in long term storage.
44
author: pnghub
55
ms.author: gned
66
ms.reviewer: matp
7+
contributors: manasdalai
78
ms.service: powerapps
89
ms.topic: how-to
9-
ms.date: 03/12/2024
10-
ms.custom: template-how-to
10+
ms.date: 06/27/2024
11+
ms.custom: template-how-to
1112
---
1213
# View long term retained data
1314

@@ -39,6 +40,20 @@ If you need to retrieve long term data from multiple related tables, such as the
3940

4041
More information: [Advanced find in model-driven apps](../../user/advanced-find.md)
4142

43+
## View retained data using using FetchXml
44+
In order to fetch the retained data for a table, specify the `datasource="retained"` in the FetchXml.
45+
46+
Example:
47+
```xml
48+
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" no-lock="false" datasource="retained">
49+
<entity name="opportunity">
50+
<attribute name="opportunityid"></attribute>
51+
</entity>
52+
</fetch>
53+
```
54+
55+
More information: [Use FetchXml to retrieve data](/power-apps/developer/data-platform/fetchxml/retrieve-data?tabs=sdk)
56+
4257
## View retained data using a flow
4358

4459
Create a Power Automate cloud flow to create an Excel file of the retained data from a FetchXML query and send as an email attachment. More information: [Create a cloud flow to view Dataverse long term retained data](/power-automate/dataverse/data-retention-flow)

0 commit comments

Comments
 (0)