You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/common-data-service/webapi/retrieve-related-entities-query.md
+94-49Lines changed: 94 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Retrieve related entity records with a query (Microsoft Dataverse)| Microsoft Docs"
3
3
description: "Read how you can retrieve related entity records by expanding the navigation properties."
4
4
ms.custom: ""
5
-
ms.date: 06/27/2020
5
+
ms.date: 11/16/2020
6
6
ms.service: powerapps
7
7
ms.suite: ""
8
8
ms.tgt_pltfrm: ""
@@ -207,9 +207,11 @@ OData-Version: 4.0
207
207
208
208
## Retrieve related entities by expanding collection-valued navigation properties
209
209
210
-
If you expand on collection-valued navigation parameters to retrieve related entities for entity sets, an `@odata.nextLink` property will be returned for the related entities. You should use the value of the `@odata.nextLink` property with a new `GET` request to return the required data.
210
+
If you expand on collection-valued navigation parameters to retrieve related entities for entity sets, only one level of depth is returned if there is data. Otherwise the collection will return an empty array.
211
211
212
-
The following example retrieves the tasks assigned to the top 2 account records.
212
+
In either case an `@odata.nextLink` property will be returned for the related entities. If you want to retrieve the collection separately, you can use the value of the `@odata.nextLink` property with a new `GET` request to return the required data.
213
+
214
+
The following example retrieves the tasks assigned to the top 2 account records. One has related tasks, the other does not.
## Retrieve related entities by expanding both single-valued and collection-valued navigation properties
257
281
258
-
The following example demonstrates how you can expand related entities for entity sets using both single- and collection-valued navigation properties. As explained earlier, expanding on collection-valued navigation properties to retrieve related entities for entity sets returns an `@odata.nextLink` property for the related entities. You should use the value of the `@odata.nextLink` property with a new `GET` request to return the required data.
282
+
The following example demonstrates how you can expand related entities for entity sets using both single and collection-valued navigation properties. As explained earlier, expanding on collection-valued navigation properties to retrieve related entities for entity sets returns one level of depth and an `@odata.nextLink` property for the related entities.
259
283
260
284
In this example, we are retrieving the contact and tasks assigned to the top 2 accounts.
0 commit comments