Skip to content

Commit 0e92569

Browse files
committed
Addressed requested changes and spelling mistakes
1 parent 66dfd7d commit 0e92569

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-WebApi/retrieveMultipleRecords.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ search.app:
6363
<td>successCallback</td>
6464
<td>Function</td>
6565
<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>
6767
<ul>
6868
<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>
6969
<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>
@@ -131,7 +131,7 @@ Xrm.WebApi.retrieveMultipleRecords("account", "?$select=name,_primarycontactid_v
131131
);
132132
```
133133

134-
#### For mobile offine scenario
134+
#### For mobile offline scenario
135135

136136
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:
137137

@@ -169,7 +169,7 @@ Xrm.WebApi.retrieveMultipleRecords("account", "?$select=name", 3).then(
169169
);
170170
```
171171

172-
This example will display 3 records and a link to the next page. Here is an example outout from the **Console** in the browser developer tools:
172+
This example will display 3 records and a link to the next page. Here is an example output from the **Console** in the browser developer tools:
173173

174174
```
175175
{@odata.etag: "W/"1035541"", name: "A. Datum", accountid: "475b158c-541c-e511-80d3-3863bb347ba8"}
@@ -252,7 +252,7 @@ The above piece of code returns a result with a schema like:
252252
}
253253
```
254254

255-
#### For mobile offine scenario
255+
#### For mobile offline scenario
256256
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:
257257

258258
```JavaScript
@@ -289,13 +289,13 @@ The above piece of code returns a result with a schema like:
289289
}
290290
```
291291

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:
293293

294294
```JavaScript
295295
Xrm.WebApi.offline.retrieveMultipleRecords("account", "?$select=name&$top=3&$expand=primarycontactid($select=contactid,fullname)").then(function(resultSet) {
296296
var promises = resultSet.entities.map(function(outerItem) {
297-
// We do a retrieveRecord for every item in the resultSet of retrieveMultipleRecords() and then
298-
// hydrate the retrieveMultipleRecords resultSet itself.
297+
// We do a retrieveRecord() for every item in the result set of retrieveMultipleRecords() and then
298+
// combine its results into the retrieveMultipleRecords() result set itself.
299299
return Xrm.WebApi.offline.retrieveRecord(
300300
outerItem["[email protected]"].entityType,
301301
outerItem["[email protected]"].id,

0 commit comments

Comments
 (0)