Skip to content

Commit 267b827

Browse files
authored
Merge branch 'main' into patch-6
2 parents 22cf09a + 8fa7463 commit 267b827

File tree

110 files changed

+1216
-341
lines changed

Some content is hidden

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

110 files changed

+1216
-341
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ _repo.*/
77

88
.openpublishing.buildcore.ps1
99
settings.json
10+
.DS_Store
1011

1112
# Folder config file
1213
[Dd]esktop.ini

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "powerapps-docs/maker/dev-community-plan.md",
5+
"redirect_url": "developer-plan",
6+
"redirect_document_id": "false"
7+
},
38
{
49
"source_path": "powerapps-docs/user/powerapps-mobile-troubleshoot.md",
510
"redirect_url": "../mobile/powerapps-mobile-troubleshoot",

powerapps-docs/.DS_Store

0 Bytes
Binary file not shown.

powerapps-docs/developer/data-platform/dataverse-sql-query.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ There is an 80-MB maximum size limit for query results returned from the Dataver
9191
9292
Dates returned in query results are formatted as Universal Time Coordinated (UTC). Previously, dates were returned in local time.
9393
94-
> [!NOTE]
95-
> Until a service update planned for January 2021 has deployed, using date filters will be slow.
96-
9794
Querying data using SQL does not trigger any plug-ins registered on the <xref:Microsoft.Xrm.Sdk.Messages.RetrieveMultipleRequest> or <xref:Microsoft.Xrm.Sdk.Messages.RetrieveRequest> messages. Any rewriting of the query or results that would normally be performed by such a plug-in will therefore not take effect for a SQL query.
9895
9996
Queries using the TDS endpoint execute under the service protection API limits.
@@ -158,4 +155,4 @@ This means the port has been blocked at the client.
158155
[Service Protection API Limits](api-limits.md)
159156
160157
161-
[!INCLUDE[footer-include](../../includes/footer-banner.md)]
158+
[!INCLUDE[footer-include](../../includes/footer-banner.md)]

powerapps-docs/developer/data-platform/webapi/associate-disassociate-entities-using-web-api.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Associate and disassociate tables using the Web API (Microsoft Dataverse)| Microsoft Docs"
2+
title: "Associate and disassociate table rows using the Web API (Microsoft Dataverse)| Microsoft Docs"
33
description: "Read how to add a reference to a collection-valued navigation property, remove a reference, and change an existing reference using the Web API"
44
ms.custom: ""
55
ms.date: 05/03/2021
@@ -22,7 +22,7 @@ search.app:
2222
- D365CE
2323
---
2424

25-
# Associate and disassociate tables using the Web API
25+
# Associate and disassociate table rows using the Web API
2626

2727
[!INCLUDE[cc-terminology](../includes/cc-terminology.md)]
2828

@@ -32,7 +32,7 @@ There are several methods you can use to associate and disassociate tables (enti
3232

3333
## Add a reference to a collection-valued navigation property
3434

35-
The following example shows how to associate an existing opportunity entity with the `opportunityid` value of `00000000-0000-0000-0000-000000000001` to the collection-valued `opportunity_customer_accounts` navigation property for an account entity with the `accountid` value of `00000000-0000-0000-0000-000000000002`. This is a 1:N relationship but you can perform the same operation for an N:N relationship.
35+
The following example shows how to associate an existing opportunity with the `opportunityid` value of `00000000-0000-0000-0000-000000000001` to the collection-valued `opportunity_customer_accounts` navigation property for an account with the `accountid` value of `00000000-0000-0000-0000-000000000002`. This is a 1:N relationship but you can perform the same operation for an N:N relationship.
3636

3737
**Request**
3838
```http
@@ -59,7 +59,7 @@ OData-Version: 4.0
5959

6060
## Change the reference in a single-valued navigation property
6161

62-
You can associate entities by setting the value of a single-valued navigation property using PUT request with the following pattern.
62+
You can associate rows by setting the value of a single-valued navigation property using PUT request with the following pattern.
6363

6464
**Request**
6565

@@ -83,11 +83,11 @@ OData-Version: 4.0
8383
```
8484

8585

86-
<a name="bkmk_Removeareferencetoanentity"></a>
86+
<a name="bkmk_Removeareferencetoarow"></a>
8787

88-
## Remove a reference to a table
88+
## Remove a reference to a table row
8989

90-
Use a DELETE request to remove a reference to an entity. The way you do it is different depending on whether you’re referring to a collection-valued navigation property or a single-valued navigation property.
90+
Use a DELETE request to remove a reference to a row. The way you do it is different depending on whether you’re referring to a collection-valued navigation property or a single-valued navigation property.
9191

9292
**Request**
9393
For a collection-valued navigation property, use the following.
@@ -126,23 +126,23 @@ HTTP/1.1 204 No Content
126126
OData-Version: 4.0
127127
```
128128

129-
<a name="bkmk_Associateentitiesoncreate"></a>
129+
<a name="bkmk_Associaterowsoncreate"></a>
130130

131-
## Associate tables on create
131+
## Associate table rows on create
132132

133-
As described in [Associate table rows on create](create-entity-web-api.md#associate-table-rows-on-create), you can associate the new record to existing records by setting the navigation properties using the `@odata.bind` annotation.
133+
As described in [Associate rows on create](create-entity-web-api.md#associate-table-rows-on-create), you can associate the new row to existing rows by setting the navigation properties using the `@odata.bind` annotation.
134134

135-
As described in [Create related tables in one operation](create-entity-web-api.md#bkmk_CreateRelated), new entities can be created with relationships using *deep insert*.
135+
As described in [Create related tables in one operation](create-entity-web-api.md#bkmk_CreateRelated), new tables can be created with relationships using *deep insert*.
136136

137-
## Associate and disassociate tables on update
137+
## Associate and disassociate table rows on update
138138

139-
You can set the value of single-valued navigation properties using `PATCH` to associate or disassociate records.
139+
You can set the value of single-valued navigation properties using `PATCH` to associate or disassociate rows.
140140

141-
<a name="bkmk_Associateentitiesonupdate"></a>
141+
<a name="bkmk_Associaterowsonupdate"></a>
142142

143-
### Associate tables on update
143+
### Associate table rows on update
144144

145-
You can associate entities on update using the same message described in [Basic update](update-delete-entities-using-web-api.md#bkmk_update) but you must use the `@odata.bind` annotation to set the value of a single-valued navigation property. The following example changes the account associated to an opportunity using the `customerid_account` single-valued navigation property.
145+
You can associate rows on update using the same message described in [Basic update](update-delete-entities-using-web-api.md#bkmk_update) but you must use the `@odata.bind` annotation to set the value of a single-valued navigation property. The following example changes the account associated to an opportunity using the `customerid_account` single-valued navigation property.
146146

147147
**Request**
148148

@@ -165,7 +165,7 @@ HTTP/1.1 204 No Content
165165
OData-Version: 4.0
166166
```
167167

168-
### Disassociate tables on update
168+
### Disassociate table rows on update
169169

170170
You can remove a reference to a single-valued navigation property when updating by setting the value to `null`. This method allows you to disassociate multiple references in a single operation.
171171
There are two ways to do this:
@@ -203,14 +203,14 @@ OData-Version: 4.0
203203

204204
More information: [Basic update](update-delete-entities-using-web-api.md#basic-update)
205205

206-
<a name="bkmk_Associateentitiesonupdate_multi"></a>
206+
<a name="bkmk_Associaterowsonupdate_multi"></a>
207207

208-
## Associate tables on update using collection-valued navigation property
208+
## Associate table rows on update using collection-valued navigation property
209209

210-
The following example shows how to associate multiple existing [ActivityParty](../reference/entities/activityparty.md) entities with an [Email](../reference/entities/email.md) entity using collection-valued navigation property `email_activity_parties`.
210+
The following example shows how to associate multiple existing [ActivityParty](../reference/entities/activityparty.md) with an [Email](../reference/entities/email.md) using collection-valued navigation property `email_activity_parties`.
211211

212212
> [!NOTE]
213-
> Associating multiple entities with an entity on update is a special scenario that is possible only with <xref:Microsoft.Dynamics.CRM.activityparty?text=activityparty EntityType />.
213+
> Associating multiple tables with a table on update is a special scenario that is possible only with <xref:Microsoft.Dynamics.CRM.activityparty?text=activityparty EntityType />.
214214
215215
**Request**
216216

@@ -260,4 +260,4 @@ OData-Version: 4.0
260260
[Impersonate another user using the Web API](impersonate-another-user-web-api.md)
261261
[Perform conditional operations using the Web API](perform-conditional-operations-using-web-api.md)
262262

263-
[!INCLUDE[footer-include](../../../includes/footer-banner.md)]
263+
[!INCLUDE[footer-include](../../../includes/footer-banner.md)]

powerapps-docs/developer/data-platform/webapi/samples/cdswebapiservice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Sends a `DELETE` request synchronously.
210210
More information:
211211

212212
- [Basic delete](../update-delete-entities-using-web-api.md#basic-delete)
213-
- [Remove a reference to a table](../associate-disassociate-entities-using-web-api.md#remove-a-reference-to-a-table)
213+
- [Remove a reference to a table](../associate-disassociate-entities-using-web-api.md#remove-a-reference-to-a-table-row)
214214
- [Delete a single property value](../update-delete-entities-using-web-api.md#delete-a-single-property-value)
215215

216216
## DeleteAsync

powerapps-docs/developer/data-platform/webapi/update-delete-entities-using-web-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ OData-Version: 4.0
7272
```
7373

7474
> [!NOTE]
75-
> See [Associate and disassociate tables on update](associate-disassociate-entities-using-web-api.md#associate-and-disassociate-tables-on-update) for information about associating and disassociating entities on update.
75+
> See [Associate and disassociate tables on update](associate-disassociate-entities-using-web-api.md#associate-and-disassociate-table-rows-on-update) for information about associating and disassociating entities on update.
7676
7777
<a name="bkmk_updateWithDataReturned"></a>
7878

@@ -175,7 +175,7 @@ OData-Version: 4.0
175175
```
176176

177177
> [!NOTE]
178-
> This can’t be used with a single-valued navigation property to disassociate two entities. For an alternative approach, see [Remove a reference to a table](associate-disassociate-entities-using-web-api.md#bkmk_Removeareferencetoanentity).
178+
> This can’t be used with a single-valued navigation property to disassociate two entities. For an alternative approach, see [Remove a reference to a table](associate-disassociate-entities-using-web-api.md#bkmk_Removeareferencetoarow).
179179
180180
<a name="bkmk_upsert"></a>
181181

powerapps-docs/developer/data-platform/webapi/web-api-basic-operations-sample.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ This sample is divided into the following sections, containing Dataverse Web API
4040
|Code section|Associated conceptual topics|
4141
|------------------|----------------------------------|
4242
|[Section 1: Basic create and update operations](#bkmk_section1)|[Basic create](create-entity-web-api.md#bkmk_basicCreate) <br /> [Create with data returned](create-entity-web-api.md#bkmk_createWithDataReturned) <br /> [Basic update](update-delete-entities-using-web-api.md#bkmk_update) <br /> [Update with data returned](update-delete-entities-using-web-api.md#bkmk_updateWithDataReturned)|
43-
|[Section 2: Create with association](#bkmk_section2)|[Associate entities on create](associate-disassociate-entities-using-web-api.md#bkmk_Associateentitiesoncreate)|
43+
|[Section 2: Create with association](#bkmk_section2)|[Associate entities on create](associate-disassociate-entities-using-web-api.md#bkmk_Associaterowsoncreate)|
4444
|[Section 3: Create related entities (deep insert)](#bkmk_section3)|[Create related entities in one operation](create-entity-web-api.md#bkmk_CreateRelated)|
45-
|[Section 4: Associate and disassociate existing entities](#bkmk_section4)|[Associate and disassociate entities using the Web API](associate-disassociate-entities-using-web-api.md)|
45+
|[Section 4: Associate and disassociate existing entities](#bkmk_section4)|[Associate and disassociate table rows using the Web API](associate-disassociate-entities-using-web-api.md)|
4646
|[Section 5: Delete entities (sample cleanup)](#bkmk_section5)|[Basic delete](update-delete-entities-using-web-api.md#bkmk_delete)|
4747

4848
> [!NOTE]
@@ -861,8 +861,8 @@ DELETE https://[Organization URI]/api/data/v9.0/opportunities(7cf77a42-5f0e-e611
861861
[Create an entity using the Web API](create-entity-web-api.md)<br />
862862
[Retrieve an entity using the Web API](retrieve-entity-using-web-api.md)<br />
863863
[Update and delete entities using the Web API](update-delete-entities-using-web-api.md)<br />
864-
[Associate and disassociate entities using the Web API](associate-disassociate-entities-using-web-api.md)<br />
864+
[Associate and disassociate table rows using the Web API](associate-disassociate-table rows-using-web-api.md)<br />
865865
[Web API Basic Operations Sample (C#)](samples/cdswebapiservice-basic-operations.md)<br />
866866

867867

868-
[!INCLUDE[footer-include](../../../includes/footer-banner.md)]
868+
[!INCLUDE[footer-include](../../../includes/footer-banner.md)]

powerapps-docs/developer/model-driven-apps/TOC.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@
164164
href: clientapi/reference/save-event-arguments/isDefaultPrevented.md
165165
- name: preventDefault
166166
href: clientapi/reference/save-event-arguments/preventDefault.md
167+
- name: preventDefaultOnError
168+
href: clientapi/reference/save-event-arguments/preventDefaultOnError.md
167169
- name: Attributes
168170
href: clientapi/reference/attributes.md
169171
items:
@@ -238,6 +240,8 @@
238240
href: clientapi/reference/controls/addNotification.md
239241
- name: addOnLookupTagClick
240242
href: clientapi/reference/controls/addOnLookupTagClick.md
243+
- name: addOnPostSave
244+
href: clientapi/reference/controls/addOnPostSave.md
241245
- name: addOnPostSearch
242246
href: clientapi/reference/controls/addOnPostSearch.md
243247
- name: addOnResultOpened
@@ -302,6 +306,8 @@
302306
href: clientapi/reference/controls/refresh.md
303307
- name: removeOnLookupTagClick
304308
href: clientapi/reference/controls/removeOnLookupTagClick.md
309+
- name: removeOnPostSave
310+
href: clientapi/reference/controls/removeOnPostSave.md
305311
- name: removeOnPostSearch
306312
href: clientapi/reference/controls/removeOnPostSearch.md
307313
- name: removeOnResultOpened
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "addOnPostSave (Client API reference) in model-driven apps| MicrosoftDocs"
3+
description: Includes description and supported parameters for the addOnPostSave method.
4+
ms.date: 05/19/2021
5+
ms.service: powerapps
6+
ms.topic: "reference"
7+
applies_to: "Dynamics 365 (online)"
8+
ms.assetid: c398dbca-0ead-487a-8a92-35b1f2953bf6
9+
author: "Nkrb"
10+
ms.author: "nabuthuk"
11+
manager: "kvivek"
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
# addOnPostSave (Client API reference)
19+
20+
Adds an event handler to be called after the record is saved with success or failure.
21+
22+
## Syntax
23+
24+
```javascript
25+
formContext.data.entity.addOnPostSave(myFunction);
26+
```
27+
28+
### Parameter
29+
30+
|Name|Type|Required|Description|
31+
|------|-----|------|----------|
32+
|myFunction|function reference|Yes|The function to be added to the `PostSave` event after teh record is saved with success or failure.|
33+
34+
### See also
35+
36+
[PostSave event](../events/postsave.md)
37+
38+
[removeOnPostSave](removeOnPostSave.md)
39+

0 commit comments

Comments
 (0)