Skip to content

Commit 4b6a180

Browse files
committed
Adding more topics
1 parent 2a161c8 commit 4b6a180

15 files changed

+602
-3
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: "Sample: Create and retrieve entity relationships (Common Data Service) | 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.
4+
ms.custom: ""
5+
ms.date: 10/31/2018
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
19+
# Create and retrieve entity relationships
20+
21+
This sample shows how to create and retrieve entity relationships. The following methods are used to create and retrieve the relationships:
22+
23+
- [CreateOneToManyRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.createonetomanyrequest?view=dynamics-general-ce-9)
24+
- [CreateManyToManyRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.createmanytomanyrequest?view=dynamics-general-ce-9)
25+
- [CanBeReferencedRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.canbereferencedrequest?view=dynamics-general-ce-9)
26+
- [CanBeReferencingRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.canbereferencingrequest?view=dynamics-general-ce-9)
27+
- [CanManyToManyRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.canmanytomanyrequest?view=dynamics-general-ce-9)
28+
- [RetrieveRelationshipRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.retrieverelationshiprequest?view=dynamics-general-ce-9)
29+
30+
## How to run this sample
31+
32+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
33+
34+
## What this sample does
35+
36+
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.
37+
38+
## How this sample works
39+
40+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
41+
42+
### Setup
43+
44+
Checks for the current version of the org.
45+
46+
### Demonstrate
47+
48+
1. The `CreateOneToManyRequest` method creates a new One-to-Many (1:N) relationship.
49+
2. The `CreateManyToManyRequest` method creates a new Many-To-Many (N:N) relationship.
50+
3. The `EligibleCreateManyToManyRelationship` method verifies whether entities can participate in N:N relationship.
51+
4. The `RetrieveRelationshipRequest` method retrieves the two entity relationships previously created.
52+
53+
54+
### Clean up
55+
56+
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.

powerapps-docs/developer/common-data-service/org-service/samples/assign-records-to-team.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ You can download the sample from [here](https://github.com/microsoft/PowerApps-S
2525
## How to run this sample
2626

2727
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
28+
2829
## What this sample does
2930

3031
The [AssignRequest](https://docs.microsoft.com/dotnet/api/microsoft.crm.sdk.messages.assignrequest?view=dynamics-general-ce-9) message is intended to be used in a scenario where it contains the data that is needed to assign the specified record to a new owner (user or team) by changing the OwnerId attribute of the record.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: " Associate security role to a user (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample showcases how to assign a security role to a user " # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 12/20/2019
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
19+
# Sample: Associate security role to a user
20+
21+
This sample shows how to assign a security role to a user by using the [IOrganizationService.Associate](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.iorganizationservice?view=dynamics-general-ce-9) message.
22+
23+
This sample requires an additional user that isn't available in your system. Create the required user manually in **Office 365** in order to run the sample without any errors. For this sample create a user profile **as is** shown below.
24+
25+
**First Name**: Dan<br/>
26+
**Last Name**: Park<br/>
27+
**Security Role**: User without any roles assigned<br/>
28+
**UserName**: [email protected]<br/>
29+
30+
You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AssociateSecurityRoleToTeam)
31+
32+
## How to run this sample
33+
34+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
35+
36+
## What this sample does
37+
38+
The [IOrganizationService.Associate](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.iorganizationservice?view=dynamics-general-ce-9) message is intended to be used in a scenario where it provides programmatic access to the metadata and data for an organization.
39+
40+
## How this sample works
41+
42+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
43+
44+
### Setup
45+
46+
1. Checks for the current version of the org.
47+
2. The `CreateRequiredRecords` method creates the records required by the sample.
48+
49+
### Demonstrate
50+
51+
1. The `QueryExpression` method retrieves a role from Common Data Service.
52+
2. The `Associate` message assigns the role to a user.
53+
54+
### Clean up
55+
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.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: " Create and retrieve outlook filters (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample showcases how to create and retrieve outlook filters." # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 12/20/2019
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
19+
# Create and retrieve outlook filters
20+
21+
This sample shows how to retrieve filters for Outlook.
22+
23+
You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/CreateUpdateEmailableEntity).
24+
25+
## How to run this sample
26+
27+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
28+
29+
## How this sample works
30+
31+
In order to simulate the scenario described above, the sample will do the following:
32+
33+
### Setup
34+
35+
Checks for the current version of the org.
36+
37+
### Demonstrate
38+
39+
The `SavedQuery` method creates and retrieves the offline filter. In your Outlook client , this will appear in the System filters tab under **File** > **CRM** > **Synchronize** > **Outlook Filters**.
40+
41+
### Clean up
42+
43+
No Clean up is required for this sample.
44+

powerapps-docs/developer/common-data-service/org-service/samples/create-update-emailable-entity.md

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

3737
### Setup
3838

39-
1. Checks for the current version of the org.
39+
Checks for the current version of the org.
4040

4141
### Demonstrate
4242

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: " Dump global option set information to a file (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample showcases how to dump global option set information to a file." # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 12/20/2019
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
19+
# Dump global option information to a file
20+
21+
This sample shows how to write out all the global option set metadata to an `XML` file. It uses the [RetrieveAllOptionSetsRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.retrievealloptionsetsrequest?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/DumpPickListInfo).
22+
23+
The following sample creates a new file at `\DumpGlobalOptionSetInfo\bin\Debug\AllOptionSetValues.xml`. You can open this file in **Office Excel** to see a tabular report.
24+
25+
## How to run this sample
26+
27+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
28+
29+
## What this sample does
30+
31+
The `RetrieveAllOptionSetsRequest` message is intended to be used in a scenario that contains data that is needed to retrieve metadata information about all the global option set metadata.
32+
33+
## How this sample works
34+
35+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
36+
37+
### Setup
38+
39+
Checks for the current version of the org.
40+
41+
### Demonstrate
42+
43+
1. The `RetrieveAllOptionSetsRequest` method retrieves the metadata.
44+
1. The `StreamWriter` creates an instance of StreamWriter to write text to a file.
45+
46+
### Clean up
47+
48+
This sample creates no records. No cleanup is required.

powerapps-docs/developer/common-data-service/org-service/samples/execute-multiple-requests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ In order to simulate the scenario described in [What this sample does](#what-thi
3535

3636
### Setup
3737

38-
1. Checks for the current version of the org.
38+
Checks for the current version of the org.
3939

4040
### Demonstrate
4141

4242
1. The `ExecuteMultipleRequest` method creates the `ExecuteMultipleRequest` object.
43-
1. The `ExecutingMultipleSettings` method assigns settings that define execution behaviour: continue on error, return responses.
43+
1. The `ExecutingMultipleSettings` method assigns settings that define execution behavior: continue on error, return responses.
4444
1. The `OrganizationRequestCollection` method creates an empty organization request collection.
4545
1. The `CreateRequest` method is added for each entity to the request collection.
4646
1. The `GetCollectionOdEntitiesToUpdate` class updates the entities that are previously created.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: "Sample: Execute multiple requests in transaction (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample shows how to execute multiple request in transaction." # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 10/31/2018
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
# Sample: Execute multiple requests
19+
20+
This sample shows how to use a single web method call to execute all message requests in a collection as part of a single database transaction. It is a common requirement in business applications to coordinate changes of multiple records in the system so that either all the data changes succeed, or none of them do. In database terms, this is known as executing multiple operations in a single transaction with the ability to roll back all data changes should any one operation fail.
21+
22+
You can execute two or more organization service requests in a single database transaction using the [ExecuteTransactionRequest](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.messages.executetransactionrequest?view=dynamics-general-ce-9) message request.
23+
24+
You can download the sample from [here](https://github.com/Microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/ExecutemultipleRequests).
25+
26+
## How to run this sample
27+
28+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
29+
30+
## What this sample does
31+
32+
The `ExecuteTransactionRequest` message is intended to be used in a scenario where it contains data that is needed to execute one or more message requests in a single database transaction, and optionally return a collection of results.
33+
34+
## How this sample works
35+
36+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
37+
38+
### Setup
39+
40+
Checks for the current version of the org.
41+
42+
### Demonstrate
43+
44+
1. The `ExecuteTransactionRequest` method creates the `ExecuteTransactionRequest` object.
45+
2. The `OrganizationRequestCollection` method creates an empty organization request collection.
46+
3. The `CreateRequest` method is added for each entity to the request collection.
47+
48+
### Clean up
49+
50+
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.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: "Sample: Export ribbon definitions(Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample shows how to export ribbon definitions" # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 10/31/2018
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "mayadumesh" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
# Export ribbon definitions
19+
20+
This sample shows how to export Ribbon definitions. It uses the [RetrieveApplicationRibbonRequest](https://docs.microsoft.com/dotnet/api/microsoft.crm.sdk.messages.retrieveapplicationribbonrequest?view=dynamics-general-ce-9) and [RetrieveEntityRibbonRequest](https://docs.microsoft.com/dotnet/api/microsoft.crm.sdk.messages.retrieveentityribbonrequest?view=dynamics-general-ce-9) messages. You can download the sample from [here](https://github.com/Microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/ExportImportDataMap).
21+
22+
23+
## How to run this sample
24+
25+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
26+
27+
## What this sample does
28+
29+
The `RetrieveApplicationRibbonRequest` message is intended to be used in a scenario where it contains data that is needed to retrieve the data that defines the content and behavior of the application ribbon. The `RetrieveEntityRibbonRequest` message is intended to be used in a scenario where it contains data that is needed to retrieve ribbon definitions for an entity.
30+
31+
## How this sample works
32+
33+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
34+
35+
### Setup
36+
37+
Checks for the current version of the org.
38+
39+
### Demonstrate
40+
41+
1. The `RetrieveApplicationRibbonRequest` method retrieves the application ribbon.
42+
2. The `RetrieveEntityRibbonRequest` method retrieves the system entity ribbons
43+
44+
### Clean up
45+
46+
No clean up is required for this sample
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: "Sample: Get report history limits (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample shows how to get report history limits." # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 10/31/2018
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
# Get report history limits
19+
20+
This sample shows how to get report history limits using the [GetReportHistoryLimitRequest](https://docs.microsoft.com/dotnet/api/microsoft.crm.sdk.messages.getreporthistorylimitrequest?view=dynamics-general-ce-9) message.
21+
22+
## How to run this sample
23+
24+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
25+
26+
## What this sample does
27+
28+
The `GetReportHistoryLimitRequest` message is intended to be used in a scenario where it contains data that is needed to retrieve the history limit for a report.
29+
30+
## How this sample works
31+
32+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
33+
34+
### Setup
35+
36+
Checks for the current version of the org.
37+
38+
### Demonstrate
39+
40+
1. The `QueryByAttribute` method queries for an existing report.
41+
2. The `GetReportHistoryLimitRequest` method gets the history limit data.
42+
43+
### Clean up
44+
45+
No clean up is required for this sample.

0 commit comments

Comments
 (0)