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/model-driven-apps/clientapi/reference/Xrm-WebApi/retrieveMultipleRecords.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ search.app:
63
63
<td>successCallback</td>
64
64
<td>Function</td>
65
65
<td>No</td>
66
-
<td><p>A function to call when entity records are retrived. An object with the following attributes is passed to the function:</p>
66
+
<td><p>A function to call when entity records are retrieved. An object with the following attributes is passed to the function:</p>
67
67
<ul>
68
68
<li><b>entities</b>: An array of JSON objects, where each object represents the retrieved entity record containing attributes and their values as <code>key: value</code> pairs. The Id of the entity record is retrieved by default.</li>
69
69
<li><b>nextLink</b>: String. If the number of records being retrieved is more than the value specified in the <code>maxPageSize</code> parameter in the request, this attribute returns the URL to return next set of records.</li>
This example queries the accounts entity set and uses the `$select` and `$filter` system query options to return the name and primarycontactid property for accounts that have a particular primary contact when working in the offline mode:
@@ -252,7 +252,7 @@ The above piece of code returns a result with a schema like:
252
252
}
253
253
```
254
254
255
-
#### For mobile offine scenario
255
+
#### For mobile offline scenario
256
256
When doing an **$expand** operation while working offline, the structure of the result object is different from the online scenario and a different approach is needed to get to the linked data in this case. The following example demonstrates this:
257
257
258
258
```JavaScript
@@ -289,13 +289,13 @@ The above piece of code returns a result with a schema like:
289
289
}
290
290
```
291
291
292
-
Notice the empty `primarycontactid` property but an additional `primaricontactid@odata.nextLink`property that let's us know how to get to the linked data that we need. Use the `id`, `entityType`, and `options` parameter of that property to construct an inner `Xrm.WebApi.offline.retrieveRecord` request. The following piece of code provides a complete example of how to do this:
292
+
Notice the empty `primarycontactid` property but an additional `primarycontactid@odata.nextLink`annotation that lets us know how to get to the linked data that we need. Use the `id`, `entityType`, and `options` parameter of that property to construct one or more additional `Xrm.WebApi.offline.retrieveRecord` request(s). The following piece of code provides a complete example of how to do this:
0 commit comments