Skip to content

Commit 6ab69ca

Browse files
authored
Live publish
2 parents f617813 + 389b845 commit 6ab69ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+475
-191
lines changed

powerapps-docs/developer/common-data-service/build-web-applications-server-server-s2s-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ S2S authentication means you don’t need to use a paid Power Apps user license
3232
| Scenario | Description |
3333
|---------------|---------------|
3434
| Multi-Tenant | This is the most common scenario and the one which is used for apps distributed using Microsoft AppSource.<br /><br /> Each Common Data Service tenant is associated with an Azure AD tenant. Your web application or service is registered with your Azure AD tenant.<br /><br /> In this scenario any Common Data Service tenant can potentially use your multi-tenant application after they grant consent for the application to access data in their tenant. |
35-
| Single-Tenant | This scenario typically applies to Common Data Service environments that want to develop apps for their own tenant and don’t intend to distribute them to other [Common Data Service environments.<br /><br /> An enterprise can create a web application or service to connect to all the Common Data Service environments for their tenant.<br /><br /> In this scenario, your web application or service will only be able to connect to Common Data Service environments using the same Azure AD tenant. |
35+
| Single-Tenant | This scenario typically applies to Common Data Service environments that want to develop apps for their own tenant and don’t intend to distribute them to other Common Data Service environments.<br /><br /> An enterprise can create a web application or service to connect to all the Common Data Service environments for their tenant.<br /><br /> In this scenario, your web application or service will only be able to connect to Common Data Service environments using the same Azure AD tenant. |
3636

3737
Both scenarios have common elements but there are some differences. Since multi-tenant is the most common scenario, the [Use Multi-Tenant Server-to-server authentication](use-multi-tenant-server-server-authentication.md) content describes how you can use S2S in this scenario and include notes where the options for single-tenant configuration is different.
3838

powerapps-docs/developer/component-framework/manifest-schema-reference/type.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,17 @@ This element contains a `string` with one of the following values:
3333

3434
[!INCLUDE [type-table](includes/type-table.md)]
3535

36-
### Example
36+
### Example for Enum type
3737

3838
```XML
39-
<type-group name="numbers">
40-
<type>Whole.None</type>
41-
<type>Currency</type>
42-
<type>FP</type>
43-
<type>Decimal</type>
44-
</type-group>
39+
<property name="YesNo" display-name-key="YesNo_Display_Key" description-key="YesNo_Desc_Key" of-type="Enum" usage="input" required="false">
40+
<value name="Yes" display-name-key="Yes">0</value>
41+
<value name="No" display-name-key="No">1</value>
42+
</property>
4543
```
4644

4745
### Related topics
4846

4947
[Power Apps component framework manifest schema reference](index.md)<br/>
5048
[Power Apps component framework API reference](../reference/index.md)<br/>
51-
[Power Apps component framework overview](../overview.md)
49+
[Power Apps component framework overview](../overview.md)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Asynchronously refreshes and optionally saves all the data of the form without reloading the page.
1+
Asynchronously refreshes and optionally saves all the data of the form without reloading the page. The [form data onload event](../../events/form-data-onload.md) occurs after the data is refreshed.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Fields of the record currently being processed are available within the formula. You simply reference them by name as you would any other value. You can also reference control properties and other values from throughout your app. For more details, see the examples below and [working with record scope](../maker/canvas-apps/working-with-tables.md#record-scope).
2-
1+
Fields of the record currently being processed are available within the formula. Use the [**ThisRecord** operator](../maker/canvas-apps/functions/operators.md#thisitem-thisrecord-and-as-operators) or simply reference fields by name as you would any other value. The [**As** operator](../maker/canvas-apps/functions/operators.md#thisitem-thisrecord-and-as-operators) can also be used to name the record being processed which can help make your formula easier to understand and make nested records accessible. For more information, see the examples below and [working with record scope](../maker/canvas-apps/working-with-tables.md#record-scope).

powerapps-docs/maker/TOC.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,8 @@
485485
href: ./canvas-apps/functions/function-logicals.md
486486
- name: App
487487
href: ./canvas-apps/functions/object-app.md
488+
- name: As
489+
href: ./canvas-apps/functions/operators.md#thisitem-thisrecord-and-as-operators
488490
- name: Asin
489491
href: ./canvas-apps/functions/function-trig.md
490492
- name: Assert
@@ -577,12 +579,14 @@
577579
href: ./canvas-apps/functions/function-form.md
578580
- name: Enable
579581
href: ./canvas-apps/functions/function-enable-disable.md
582+
- name: EncodeUrl
583+
href: ./canvas-apps/functions/function-encode-decode.md
580584
- name: EndsWith
581585
href: ./canvas-apps/functions/function-startswith.md
582586
- name: Errors
583587
href: ./canvas-apps/functions/function-errors.md
584-
- name: EncodeUrl
585-
href: ./canvas-apps/functions/function-encode-decode.md
588+
- name: exactin
589+
href: ./canvas-apps/functions/operators.md#in-and-exactin-operators
586590
- name: Exit
587591
href: ./canvas-apps/functions/function-exit.md
588592
- name: Exp
@@ -611,6 +615,8 @@
611615
href: ./canvas-apps/functions/function-if.md
612616
- name: IfError
613617
href: ./canvas-apps/functions/function-iferror.md
618+
- name: in
619+
href: ./canvas-apps/functions/operators.md#in-and-exactin-operators
614620
- name: IsBlank
615621
href: ./canvas-apps/functions/function-isblank-isempty.md
616622
- name: IsEmpty
@@ -681,6 +687,8 @@
681687
href: ./canvas-apps/functions/function-logicals.md
682688
- name: Param
683689
href: ./canvas-apps/functions/function-param.md
690+
- name: Parent
691+
href: ./canvas-apps/functions/operators.md#self-and-parent-operators
684692
- name: Patch
685693
href: ./canvas-apps/functions/function-patch.md
686694
- name: Pi
@@ -731,12 +739,16 @@
731739
href: ./canvas-apps/functions/function-datetime-parts.md
732740
- name: Select
733741
href: ./canvas-apps/functions/function-select.md
742+
- name: Self
743+
href: ./canvas-apps/functions/operators.md#self-and-parent-operators
734744
- name: Set
735745
href: ./canvas-apps/functions/function-set.md
736746
- name: SetFocus
737747
href: ./canvas-apps/functions/function-setfocus.md
738748
- name: SetProperty
739749
href: ./canvas-apps/functions/function-setproperty.md
750+
- name: Sequence
751+
href: ./canvas-apps/functions/function-sequence.md
740752
- name: ShowColumns
741753
href: ./canvas-apps/functions/function-table-shaping.md
742754
- name: Shuffle
@@ -769,6 +781,10 @@
769781
href: ./canvas-apps/functions/function-trig.md
770782
- name: Text
771783
href: ./canvas-apps/functions/function-text.md
784+
- name: ThisItem
785+
href: ./canvas-apps/functions/operators.md#thisitem-thisrecord-and-as-operators
786+
- name: ThisRecord
787+
href: ./canvas-apps/functions/operators.md#thisitem-thisrecord-and-as-operators
772788
- name: Time
773789
href: ./canvas-apps/functions/function-date-time.md
774790
- name: TimeValue

powerapps-docs/maker/canvas-apps/formula-reference.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
77
ms.topic: reference
88
ms.custom: canvas
99
ms.reviewer: tapanm
10-
ms.date: 05/20/2020
10+
ms.date: 07/17/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -20,7 +20,7 @@ Formulas combine many elements. Listed below are:
2020
* **Functions** take parameters, perform an operation, and return a value. For example, **Sqrt(25)** returns **5**. Functions are modeled after Microsoft Excel functions. Some functions have side effects, such as **SubmitForm**, which are appropriate only in a [behavior formula](working-with-formulas-in-depth.md) such as **Button.OnSelect**.
2121
* **Signals** return information about the environment. For example, **[Location](functions/signals.md)** returns the device's current GPS coordinates. Signals don't take parameters or have side effects.
2222
* **Enumerations** return a pre-defined constant value. For example, **[Color](functions/function-colors.md)** is an enumeration that has pre-defined values for **Color.Red**, **Color.Blue**, and so forth. Common enumerations are included here; function-specific enumerations are described with the function.
23-
* **Named operators**, such as **[ThisItem](functions/operators.md#thisitem-operator)** and **[Self](functions/operators.md#self-and-parent-operators)**, provide access to information from within a container.
23+
* **Named operators**, such as **[ThisItem](functions/operators.md#thisitem-thisrecord-and-as-operators)** and **[Self](functions/operators.md#self-and-parent-operators)**, provide access to information from within a container.
2424

2525
Other elements include:
2626

@@ -47,6 +47,8 @@ Other elements include:
4747

4848
**[Assert](functions/function-assert.md)** – Evaluates to true or false in a test.
4949

50+
**[As](functions/operators.md#thisitem-thisrecord-and-as-operators)** – Names the current record in gallery, form, and record scope functions such as **ForAll**, **With**, and **Sum**.
51+
5052
**[AsType](functions/function-astype-istype.md)** – Treats a record reference as a specific entity type.
5153

5254
**[Atan](functions/function-trig.md)** – Returns the arctangent of a number, in radians.
@@ -137,11 +139,13 @@ Other elements include:
137139

138140
**[Enable](functions/function-enable-disable.md)** – Enables a signal, such as **[Location](functions/signals.md)** for reading the GPS.
139141

142+
**[EncodeUrl](functions/function-encode-decode.md)** – Encodes special characters using URL encoding.
143+
140144
**[EndsWith](functions/function-startswith.md)** – Checks whether a text string ends with another text string.
141145

142146
**[Errors](functions/function-errors.md)** – Provides error information for previous changes to a data source.
143147

144-
**[EncodeUrl](functions/function-encode-decode.md)**Encodes special characters using URL encoding.
148+
**[exactin](functions/operators.md#in-and-exactin-operators)**Checks if a text string is contained within another text string or table, case dependent. Also used to check if a record is in a table.
145149

146150
**[Exit](functions/function-exit.md)** – Exits the currently running app and optionally signs out the current user.
147151

@@ -173,6 +177,8 @@ Other elements include:
173177

174178
**[IfError](functions/function-iferror.md)** - Detects errors and provides an alternative value or takes action.
175179

180+
**[in](functions/operators.md#in-and-exactin-operators)** – Checks if a text string is contained within another text string or table, case independent. Also used to check if a record is in a table.
181+
176182
**[IsBlank](functions/function-isblank-isempty.md)** – Checks for a [blank](functions/function-isblank-isempty.md) value.
177183

178184
**[IsEmpty](functions/function-isblank-isempty.md)** – Checks for an empty table.
@@ -303,6 +309,8 @@ Other elements include:
303309

304310
**[Self](functions/operators.md#self-and-parent-operators)** – Provides access to the properties of the current control.
305311

312+
**[Sequence](functions/function-sequence.md)** – Generate a table of sequential numbers, useful when iterating with **ForAll**.
313+
306314
**[Set](functions/function-set.md)** – Sets the value of a global variable.
307315

308316
**[SetFocus](functions/function-setfocus.md)** – Moves input focus to a specific control.
@@ -342,7 +350,9 @@ Other elements include:
342350

343351
**[Text](functions/function-text.md)** – Converts any value and formats a number or date/time value to a string of text.
344352

345-
**[ThisItem](functions/operators.md#thisitem-operator)** – When in a gallery or form, returns the data for the current item from the container.
353+
**[ThisItem](functions/operators.md#thisitem-thisrecord-and-as-operators)** – Returns the record for the current item in a gallery or form control.
354+
355+
**[ThisRecord](functions/operators.md#thisitem-thisrecord-and-as-operators)** – Returns the record for the current item in a record scope function, such as **ForAll**, **With**, and **Sum**.
346356

347357
**[Time](functions/function-date-time.md)** – Returns a date/time value, based on **Hour**, **Minute**, and **Second** values.
348358

powerapps-docs/maker/canvas-apps/functions/function-astype-istype.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
77
ms.topic: reference
88
ms.custom: canvas
99
ms.reviewer: tapanm
10-
ms.date: 05/17/2019
10+
ms.date: 07/19/2020
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -33,13 +33,11 @@ Common Data Service also supports polymorphic lookup fields, which can refer to
3333
| **Customer** | **Accounts** or **Contacts** |
3434
| **Regarding** | **Accounts**, **Contacts**, **Knowledge Articles**, etc. |
3535

36-
<!--note from editor: Change "Knowledge Articles" to "Knowledge Base articles" if that is what is being referenced. -->
37-
38-
In canvas-app formulas, you can use record references to work with polymorphic lookups. Because a record reference can refer to different entities, you don't know which fields will be available when you write a formula. The *.Field* notation isn't available. Those formulas must adapt to the records that the app encounters when it runs.
36+
In canvas-app formulas, use record references to work with polymorphic lookups. Because a record reference can refer to different entities, you don't know which fields will be available when you write a formula. The *Record.Field* notation isn't available. Those formulas must adapt to the records that the app encounters when it runs.
3937

4038
The **IsType** function tests whether a record reference refers to a specific entity type. The function returns a Boolean TRUE or FALSE.
4139

42-
The **AsType** function treats a record reference as a specific entity type, sometimes referred to as *casting*. You can use the result as if it were a record of the entity and, again, use the *.Field* notation to access all of the fields of that record. An error occurs if the reference isn't of the specific type.
40+
The **AsType** function treats a record reference as a specific entity type, sometimes referred to as *casting*. You can use the result as if it were a record of the entity and again use the *Record.Field* notation to access all of the fields of that record. An error occurs if the reference isn't of the specific type.
4341

4442
Use these functions together to first test the entity type of a record and then treat it as a record of that type so that the fields are available:
4543

@@ -65,9 +63,9 @@ Patch( Accounts, First( Accounts ), { Owner: First( Teams ) } )
6563
If used in a record context, such as within a [**Gallery**](../controls/control-gallery.md) or [**Edit form**](../controls/control-form-detail.md) control, you might need to use the [global disambiguation operator](operators.md#disambiguation-operator) to reference the entity type. For example, this formula would be effective for a gallery that's displaying a list of contacts where **Company Name** is a **Customer** lookup:
6664

6765
```powerapps-dot
68-
If( IsType( ThisItem.'Company Name', [@Accounts] ),
69-
AsType( ThisItem.'Company Name', [@Accounts] ).'Account Name',
70-
AsType( ThisItem.'Company Name', [@Contacts] ).'Full Name'
66+
If( IsType( ThisItem.'Company Name', Accounts ),
67+
AsType( ThisItem.'Company Name', Accounts ).'Account Name',
68+
AsType( ThisItem.'Company Name', Contacts ).'Full Name'
7169
)
7270
```
7371

@@ -129,9 +127,9 @@ If the record reference is *blank*, **IsType** returns FALSE, and **AsType** ret
129127

130128
```powerapps-dot
131129
If( IsBlank( ThisItem.'Company Name' ), "--",
132-
IsType( ThisItem.'Company Name', [@Accounts] ),
133-
"Account: " & AsType( ThisItem.'Company Name', [@Accounts] ).'Account Name',
134-
"Contact: " & AsType( ThisItem.'Company Name', [@Contacts] ).'Full Name'
130+
IsType( ThisItem.'Company Name', Accounts ),
131+
"Account: " & AsType( ThisItem.'Company Name', Accounts ).'Account Name',
132+
"Contact: " & AsType( ThisItem.'Company Name', Contacts ).'Full Name'
135133
)
136134
```
137135

0 commit comments

Comments
 (0)