Skip to content

Commit a192df0

Browse files
authored
Live publish
2 parents 7739e12 + 1dcf12d commit a192df0

File tree

77 files changed

+362
-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.

77 files changed

+362
-341
lines changed

powerapps-docs/developer/data-platform/org-service/samples/Create-retrieve-entity-relationships.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: "Sample: Create and retrieve entity relationships (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3-
description: "This sample shows how to create and retrieve entity relationships." # 115-145 characters including spaces. This abstract displays in the search result.
2+
title: "Sample: Create and retrieve table relationships (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample shows how to create and retrieve table relationships." # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 10/31/2018
5+
ms.date: 06/17/2021
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "samples"
@@ -16,11 +16,11 @@ search.app:
1616
- D365CE
1717
---
1818

19-
# Create and retrieve entity relationships
19+
# Create and retrieve table relationships
2020

2121
[!INCLUDE[cc-data-platform-banner](../../../../includes/cc-data-platform-banner.md)]
2222

23-
This sample shows how to create and retrieve entity relationships. The following methods are used to create and retrieve the relationships:
23+
This sample shows how to create and retrieve table relationships. The following methods are used to create and retrieve the relationships:
2424

2525
- [CreateOneToManyRequest](/dotnet/api/microsoft.xrm.sdk.messages.createonetomanyrequest?view=dynamics-general-ce-9)
2626
- [CreateManyToManyRequest](/dotnet/api/microsoft.xrm.sdk.messages.createmanytomanyrequest?view=dynamics-general-ce-9)
@@ -31,13 +31,15 @@ This sample shows how to create and retrieve entity relationships. The following
3131

3232
You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/CreateRetrieveEntityRelationships).
3333

34+
[!INCLUDE[cc-terminology](../../includes/cc-terminology.md)]
35+
3436
## How to run this sample
3537

3638
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
3739

3840
## What this sample does
3941

40-
The `CreateOneToManyRequest`, `CreateManyToManyRequest`, `CanManyToManyRequest`, `CreateOneToManyRequest`, `CanBeReferencedRequest`, `CanBeReferencingRequest`, and `RetrieveRelationshipRequest` messages are intended to be used in a scenario where it contains the data that is needed to create and retrieve entity relationships.
42+
The `CreateOneToManyRequest`, `CreateManyToManyRequest`, `CanManyToManyRequest`, `CreateOneToManyRequest`, `CanBeReferencedRequest`, `CanBeReferencingRequest`, and `RetrieveRelationshipRequest` messages are intended to be used in a scenario where it contains the data that is needed to create and retrieve table relationships.
4143

4244
## How this sample works
4345

@@ -51,13 +53,13 @@ Checks for the current version of the org.
5153

5254
1. The `CreateOneToManyRequest` method creates a new One-to-Many (1:N) relationship.
5355
2. The `CreateManyToManyRequest` method creates a new Many-To-Many (N:N) relationship.
54-
3. The `EligibleCreateManyToManyRelationship` method verifies whether entities can participate in N:N relationship.
55-
4. The `RetrieveRelationshipRequest` method retrieves the two entity relationships previously created.
56+
3. The `EligibleCreateManyToManyRelationship` method verifies whether tables can participate in N:N relationship.
57+
4. The `RetrieveRelationshipRequest` method retrieves the two tables relationships previously created.
5658

5759

5860
### Clean up
5961

60-
Display an option to delete the records created in the [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
62+
Display an option to delete the records created in the [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
6163

6264

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

powerapps-docs/developer/data-platform/org-service/samples/add-record-queue-early-bound.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Sample: Add a record to queue (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "This sample shows how to add a record to a queue." # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 10/31/2018
5+
ms.date: 06/17/2021
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "samples"
@@ -21,6 +21,8 @@ search.app:
2121

2222
This sample shows how to add a record to a queue. It creates source and destination queues. It adds a letter activity to the source queue and then moves it to the destination queue. You can download the sample from [here](https://github.com/Microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/RecordToQueue).
2323

24+
[!INCLUDE[cc-terminology](../../includes/cc-terminology.md)]
25+
2426
This sample requires additional users that are not in your system. Create the users manually in **Microsoft 365** in order to run the sample without any errors. For this sample, create a user profile **as is** shown below.
2527

2628
**First Name**: Kevin<br/>
@@ -34,7 +36,7 @@ This sample requires additional users that are not in your system. Create the us
3436

3537
## What this sample does
3638

37-
The `AddToQueueRequest` message is intended to be used in a scenario where it contains data that is needed to move an entity record from a source queue to destination queue.
39+
The `AddToQueueRequest` message is intended to be used in a scenario where it contains data that is needed to move a table record from a source queue to destination queue.
3840

3941
## How this sample works
4042

@@ -44,8 +46,8 @@ In order to simulate the scenario described in [What this sample does](#what-thi
4446

4547
1. Checks for the current version of the org.
4648
2. The `Queue` method creates source and destination queues and store their returned GUIDs in variable.
47-
3. Creates a Letter entity.
48-
4. The `AddToQueueRequest` method adds an entity record into a queue, in this sample it associates the letter with first queue.
49+
3. Creates a Letter table.
50+
4. The `AddToQueueRequest` method adds a table record into a queue, in this sample it associates the letter with first queue.
4951
5. Retrieves the user created manually in **Microsoft 365** for assigning the queue items to the user's queue.
5052

5153
### Demonstrate
@@ -55,7 +57,7 @@ In order to simulate the scenario described in [What this sample does](#what-thi
5557

5658
### Clean up
5759

58-
Display an option to delete the sample data that is created in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
60+
Display an option to delete the sample data that is created in [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5961

6062

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

powerapps-docs/developer/data-platform/org-service/samples/add-security-principal-user-team-queue-early-bound.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ search.app:
2121

2222
This sample showcases how to give a user or a team access to a queue. The [AddPrincipalToQueueRequest](/dotnet/api/microsoft.crm.sdk.messages.addprincipaltoqueuerequest?view=dynamics-general-ce-9) adds the specified principal to the list of queue members. If the passed-in security principal is a team each member of the team is added to the queue. You can download the sample from [here](https://github.com/Microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AddSecurityPrincipalToQueue).
2323

24+
[!INCLUDE[cc-terminology](../../includes/cc-terminology.md)]
25+
2426
## How to run this sample
2527

2628
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
@@ -48,7 +50,7 @@ The `AddPrincipalToQueueRequest` method adds the team to the queue.
4850

4951
### Clean up
5052

51-
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
53+
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5254

5355

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

powerapps-docs/developer/data-platform/org-service/samples/assign-chart-to-another-user.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ search.app:
2222

2323
This sample shows how to assign a user-owned visualization to another using the [AssignRequest](/dotnet/api/microsoft.crm.sdk.messages.assignrequest?view=dynamics-general-ce-9) message. You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AssignChartToAnotherUser).
2424

25+
[!INCLUDE[cc-terminology](../../includes/cc-terminology.md)]
26+
2527
This sample requires an additional user that isn't available in your system. Create the required user manually in **Microsoft 365** in order to run the sample without any errors. For this sample create a user profile **as is** shown below.
2628

2729
**First Name**: Kevin<br/>
@@ -45,15 +47,15 @@ In order to simulate the scenario described in [What this sample does](#what-thi
4547

4648
1. Checks for the current version of the org.
4749
2. The `CreateRequiredRecords` method creates a sample account and some opportunity records for the visualization.
48-
3. The `newUserOwnedVisualization` method creates the visualization entity instance.
50+
3. The `newUserOwnedVisualization` method creates the visualization table instance.
4951

5052
### Demonstrate
5153

5254
The `AssignRequest` method assigns the visualization or chart to the newly created user.
5355

5456
### Clean up
5557

56-
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
58+
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5759

5860

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

powerapps-docs/developer/data-platform/org-service/samples/assign-dashboard-to-another-user.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ search.app:
2222

2323
This sample shows how to assign a user-owned visualization to another using the [AssignRequest](/dotnet/api/microsoft.crm.sdk.messages.assignrequest?view=dynamics-general-ce-9) message. Because you can’t delete a user-owned dashboard that is assigned to another user, this sample shows how to use impersonation to delete the user-owned dashboard. You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AssignUserOwnedDashboardToAnother).
2424

25+
[!INCLUDE[cc-terminology](../../includes/cc-terminology.md)]
26+
2527
This sample requires an additional user that isn't available in your system. Create the required user manually in **Microsoft 365** in order to run the sample without any errors. For this sample create a user profile **as is** shown below.
2628

2729
**First Name**: Kevin<br/>
@@ -44,7 +46,7 @@ In order to simulate the scenario described in [What this sample does](#what-thi
4446
### Setup
4547

4648
1. Checks for the current version of the org.
47-
2. The `CreateRequiredRecords` method creates entity records that this sample requires.
49+
2. The `CreateRequiredRecords` method creates table records that this sample requires.
4850
3. The `mySavedQuery` method grabs the default public view for the opportunities.
4951
4. The `visualizationQuery` method retrieves the visualizations out of the system. This sample assumes that you have the **Top opportunities**.
5052
5. The `_otherUSerId` method creates the user to whom the dashboard will be assigned.
@@ -55,7 +57,7 @@ The `AssignRequest` method assigns the visualization or chart to the newly creat
5557

5658
### Clean up
5759

58-
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
60+
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5961

6062

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

powerapps-docs/developer/data-platform/org-service/samples/associate-security-role-team.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ This sample shows how to assign a security role to a team by using the [AssignRe
2424

2525
You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AssociateSecurityRoleToTeam)
2626

27+
[!INCLUDE[cc-terminology](../../includes/cc-terminology.md)]
28+
2729
## How to run this sample
2830

2931
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
@@ -48,7 +50,7 @@ In order to simulate the scenario described in [What this sample does](#what-thi
4850

4951
### Clean up
5052

51-
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
53+
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5254

5355

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

powerapps-docs/developer/data-platform/org-service/samples/associate-security-role-user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ In order to simulate the scenario described in [What this sample does](#what-thi
5555

5656
### Clean up
5757

58-
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
58+
Display an option to delete the sample data in [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5959

6060

6161
[!INCLUDE[footer-include](../../../../includes/footer-banner.md)]
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: "Sample: Audit entity data changes (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3-
description: "This sample showcases how to audit entity data changes" # 115-145 characters including spaces. This abstract displays in the search result.
2+
title: "Sample: Audit table data changes (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample showcases how to audit table data changes" # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 10/31/2018
5+
ms.date: 06/17/2021
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "samples"
@@ -15,19 +15,21 @@ search.app:
1515
- PowerApps
1616
- D365CE
1717
---
18-
# Sample: Audit entity data changes
18+
# Sample: Audit table data changes
1919

2020
[!INCLUDE[cc-data-platform-banner](../../../../includes/cc-data-platform-banner.md)]
2121

22-
This sample shows how to enable and disable auditing on an entity and its attributes, retrieve the data change history of the audited entity, and delete the audit records. You can download the sample from [here](https://github.com/Microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AuditEntityData).
22+
This sample shows how to enable and disable auditing on a table and its columns, retrieve the data change history of the audited table, and delete the audit records. You can download the sample from [here](https://github.com/Microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AuditEntityData).
23+
24+
[!INCLUDE[cc-terminology](../../includes/cc-terminology.md)]
2325

2426
## How to run this sample
2527

2628
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
2729

2830
## What this sample does
2931

30-
The `RetrieveRecordChangeHistoryRequest` message is intended to be used in a scenario where it contains data that is needed to retrieve the audit history for an entity.
32+
The `RetrieveRecordChangeHistoryRequest` message is intended to be used in a scenario where it contains data that is needed to retrieve the audit history for a table.
3133

3234

3335
## How this sample works
@@ -37,17 +39,17 @@ In order to simulate the scenario described in [What this sample does](#what-thi
3739
### Setup
3840

3941
1. Checks for the current version of the org.
40-
2. Creates an sample account entity.
42+
2. Creates an sample account table.
4143

4244
### Demonstrate
4345

4446
1. Gets the organization's ID from the system user record.
45-
2. Enabling auditing on organization and also on the sample account entity.
46-
3. The `RetrieveRecordChangeHistoryRequest` retrieves the audit history for the account entity and displays the result.
47+
2. Enabling auditing on organization and also on the sample account table.
48+
3. The `RetrieveRecordChangeHistoryRequest` retrieves the audit history for the account table and displays the result.
4749

4850
### Clean up
4951

50-
Display an option to delete the sample data that is created in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
52+
Display an option to delete the sample data that is created in [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5153

5254

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

powerapps-docs/developer/data-platform/org-service/samples/audit-user-access.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Sample: Audit user access (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "This sample shows how to audit user access" # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 10/31/2018
5+
ms.date: 06/17/2021
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "article"
@@ -19,8 +19,6 @@ search.app:
1919

2020
[!INCLUDE[cc-data-platform-banner](../../../../includes/cc-data-platform-banner.md)]
2121

22-
<!-- https://docs.microsoft.com/dynamics365/customer-engagement/developer/sample-audit-user-access -->
23-
2422
This sample code shows how to audit user access. You can download the sample from [here](https://github.com/Microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AuditUserAccess).
2523

2624
## How to run this sample
@@ -29,7 +27,7 @@ This sample code shows how to audit user access. You can download the sample fro
2927

3028
## What this sample does
3129

32-
This sample first enables user access auditing with the logged on user's organization. Next, it creates and modifies an account entity so that audit records are genertated.
30+
This sample first enables user access auditing with the logged on user's organization. Next, it creates and modifies an account table so that audit records are generated.
3331

3432
## How this sample works
3533

@@ -38,18 +36,18 @@ In order to simulate the scenario described in [What this sample does](#what-thi
3836
### Setup
3937

4038
1. Checks for the current version of the org.
41-
1. Creates a new account entity and enables auditing on the new account entity.
39+
1. Creates a new account table and enables auditing on the new account table.
4240

4341
### Demonstrate
4442

4543
1. Gets the organization's ID from the system user record and retrieves organization record.
4644
2. Enables auditing on the organization, including auditing for user access.
47-
3. Makes an update request to the account entity to be tracked by auditing.
45+
3. Makes an update request to the account table to be tracked by auditing.
4846
4. set the organization and account auditing flags back to old values and retrieve them if they were actually changed.
4947

5048
### Clean up
5149

52-
Display an option to delete the records created during [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
50+
Display an option to delete the records created during [Setup](#setup). The deletion is optional in case you want to examine the tables and data created by the sample. You can manually delete the records to achieve the same result.
5351

5452

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

0 commit comments

Comments
 (0)