Skip to content

Commit fc22346

Browse files
committed
Merge branch 'master' into canvasapp-cognitive-issue264
2 parents 544f634 + 436b41e commit fc22346

File tree

4 files changed

+61
-5
lines changed

4 files changed

+61
-5
lines changed

powerapps-docs/developer/common-data-service/org-service/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
href: page-large-result-sets-with-queryexpression.md
4444
- name: Use a left outer join in QueryExpression to query for records "not in"
4545
href: use-left-outer-join-queryexpression-query-records-not-in.md
46-
- name: Use the QueryByAttribute class
47-
href: use-querybyattribute-class.md
46+
- name: Use the QueryByAttribute class
47+
href: use-querybyattribute-class.md
4848
- name: Create entities
4949
href: entity-operations-create.md
5050
- name: Retrieve an entity

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

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "retrieveMultipleRecords (Client API reference) in model-driven apps| MicrosoftDocs"
3-
ms.date: 10/31/2018
3+
ms.date: 01/20/2019
44
ms.service: powerapps
55
ms.topic: "reference"
66
applies_to: "Dynamics 365 (online)"
@@ -84,7 +84,7 @@ On success, returns a promise that contains an array of JSON objects (**entities
8484

8585
## Examples
8686

87-
Most of the scenarios/examples mentioned in [Query Data using the Web API](../../../../common-data-service/webapi/query-data-web-api.md) can be achieved using the **retrieveMutipleRecords** method. Some of the examples are listed below.
87+
Most of the scenarios/examples mentioned in [Query Data using the Web API](../../../../common-data-service/webapi/query-data-web-api.md) can be achieved using the **retrieveMultipleRecords** method. Some of the examples are listed below.
8888

8989
### Basic retrieve multiple
9090

@@ -105,6 +105,50 @@ Xrm.WebApi.retrieveMultipleRecords("account", "?$select=name&$top=3").then(
105105
);
106106
```
107107

108+
### Retrieve or filter by lookup properties
109+
For most single-valued navigation properties you will find a computed, read-only property that uses the following naming convention: `_<name>_value` where the `<name>` is the name of the single-valued navigation property. However, for mobile clients in offline mode, this syntax is not supported, and the single-value navigation property name should be used instead.
110+
111+
More information: [Lookup properties](../../../../common-data-service/webapi/web-api-types-operations.md#bkmk_lookupProperties)
112+
113+
Here are code examples for both the scenarios:
114+
115+
#### For online scenario (connected to server)
116+
117+
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 primary contact:
118+
119+
```JavaScript
120+
Xrm.WebApi.retrieveMultipleRecords("account", "?$select=name,_primarycontactid_value&$filter=_primarycontactid_value ne null").then(
121+
function success(result) {
122+
for (var i = 0; i < result.entities.length; i++) {
123+
console.log(result.entities[i]);
124+
}
125+
// perform additional operations on retrieved records
126+
},
127+
function (error) {
128+
console.log(error.message);
129+
// handle error conditions
130+
}
131+
);
132+
```
133+
134+
#### For mobile offine scenario
135+
136+
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 primary contact when working in the offline mode:
137+
138+
```JavaScript
139+
Xrm.WebApi.retrieveMultipleRecords("account", "?$select=name,primarycontactid&$filter=primarycontactid ne null'").then(
140+
function success(result) {
141+
for (var i = 0; i < result.entities.length; i++) {
142+
console.log(result.entities[i]);
143+
}
144+
// perform additional operations on retrieved records
145+
},
146+
function (error) {
147+
console.log(error.message);
148+
// handle error conditions
149+
}
150+
);
151+
```
108152
### Specify the number of entities to return in a page
109153

110154
The following example demonstrates the use of the `maxPageSize` parameter to specify the number of records (3) to be displayed in a page.

powerapps-docs/maker/canvas-apps/common-issues-and-resolutions.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ search.app:
1818

1919
This article lists some common issues that you might encounter while using Power Apps. Where applicable, workarounds are provided.
2020

21+
1. **Camera images when imported via Edge are flipped** (January 20, 2020)
22+
23+
When using the camera and the Edge browser, the image may be flipped. This is due to an Edge defect. To mitigate this issue, please use the new Edge Chromium or a different browser.
24+
25+
1. **Camera images do not contain meta-data information** (January 20, 2020)
26+
27+
When using the camera control, the image does not contain meta-data information. This is due to a limitation of how we take images with the camera. To mitigate this, use the [Add Picture control](controls/control-add-picture.md).
28+
29+
1. **Images added from iOS do not contain meta-data information** (January 20, 2020)
30+
31+
When using the Add Picture control on iOS, images imported by using the camera or gallery do not contain meta-data.
32+
2133
1. **Sign-in issue on certain Android mobile devices when using authenticator** (August 21, 2019)
2234

2335
In certain devices and scenarios, you may experience sign-in failures when using authenticator. This is due to the OEM limiting this functionality. For more details on the error and possible mitigations, see [here](https://github.com/AzureAD/azure-activedirectory-library-for-android/wiki/ADALError:-BROKER_AUTHENTICATOR_NOT_RESPONDING).

powerapps-docs/maker/canvas-apps/controls/control-list-box.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A **List Box** control always shows all available choices (unlike a **[Drop down
2525

2626
**[Items](properties-core.md)** – The source of data that appears in a control such as a gallery, a list, or a chart.
2727

28-
**Selected** – The data record that represents the selected item.
28+
**Selected** – The data record that represents the selected item. You can only have one default selected item. If you need multiple selected items please use the [Combo Box](control-combo-box.md) control.
2929

3030
When you add a gallery, a list, or a chart, the property list shows **Items** by default so that you can easily specify the data that the new control should show. For example, you might set the **Items** property of a gallery to the **Account** table in Salesforce, a table named **Inventory** that you created in Excel and uploaded to the cloud, or a SharePoint list named **ConferenceSpeakers**.
3131

0 commit comments

Comments
 (0)