Skip to content

Commit 35d08de

Browse files
committed
Merge branch 'master' into test-studio-canvas-app
2 parents 46aa368 + de3a764 commit 35d08de

File tree

74 files changed

+1093
-276
lines changed

Some content is hidden

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

74 files changed

+1093
-276
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "powerapps-docs/maker/canvas-apps/add-images-to-excel.md",
5+
"redirect_url": "add-images-pictures-audio-video",
6+
"redirect_document_id": "false"
7+
},
8+
{
9+
"source_path": "powerapps-docs/maker/canvas-apps/tutorial-working-with-images-in-excel.md",
10+
"redirect_url": "add-images-pictures-audio-video",
11+
"redirect_document_id": "false"
12+
},
313
{
414
"source_path": "powerapps-docs/developer/common-data-service/fill-app-submission-form-appsource.md",
515
"redirect_url": "register-microsoft-partner-network",

powerapps-docs/developer/common-data-service/image-attributes.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ byte[]
256256
In the above request, the next block of data is being uploaded. After all image data has been received by the web service, a thumbnail image is automatically created by the web service.
257257

258258
### See also
259-
[Sample: Set and retrieve entity images](/dynamics365/customer-engagement/developer/sample-set-retrieve-entity-images)
260259
[File attributes](file-attributes.md)
261260
[Introduction to Entities in Dynamics 365](/dynamics365/customer-engagement/developer/introduction-entities)
262-
[Introduction to entity attributes in Dynamics 365](/dynamics365/customer-engagement/developer/introduction-entity-attributes)
263-
[Sample: Set and retrieve entity images](/dynamics365/customer-engagement/developer/sample-set-retrieve-entity-images)
261+
[Introduction to entity attributes in Dynamics 365](/dynamics365/customer-engagement/developer/introduction-entity-attributes)
262+
[Sample: Set and retrieve entity images](/dynamics365/customerengagement/on-premises/developer/sample-set-retrieve-entity-images)

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
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/CreateRetrieveEntityRelationships).
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 `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.
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+
Checks for the current version of the org.
47+
48+
### Demonstrate
49+
50+
1. The `CreateOneToManyRequest` method creates a new One-to-Many (1:N) relationship.
51+
2. The `CreateManyToManyRequest` method creates a new Many-To-Many (N:N) relationship.
52+
3. The `EligibleCreateManyToManyRelationship` method verifies whether entities can participate in N:N relationship.
53+
4. The `RetrieveRelationshipRequest` method retrieves the two entity relationships previously created.
54+
55+
56+
### Clean up
57+
58+
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/access-discovery-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This sample code shows how to use the discovery service with SDK assemblies. You
2323

2424
This sample will not open dialog to prompt you for connection information.
2525

26-
If you have set `Username` and `Password` values in the App.config connection strings it will use them. Otherwise, set the `username` and `password` variables in the `SampleProgram.Main` method.
26+
If you have set and values in the App.config connection strings, it will use them. Otherwise, set the `username` and `password` variables in the `SampleProgram.Main` method.
2727

2828
## What this sample does
2929

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ search.app:
1919

2020
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).
2121

22-
This sample requires additional users that are not in your system. Create the users manually in **Office 365** in order to run the sample without any errors. For this sample create a user profile **as is** shown below.
22+
This sample requires additional users that are not in your system. Create the users manually in **Office 365** in order to run the sample without any errors. For this sample, create a user profile **as is** shown below.
2323

2424
**First Name**: Kevin<br/>
2525
**Last Name**: Cook<br/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In order to simulate the scenario described in [What this sample does](#what-thi
3838
3. The `QueryExpression` retrieves the default business unit for the creation of the team and role.
3939
4. Creates a new example team and role required for the sample.
4040
5. Retrieves the `prvReadQueue` and `prvAppendToQueue` privileges.
41-
6. The `AddPrivilegeRoleRequest` method adds the `prvReadQueue` abd `prvAppendToQueue` privileges to the example role.
41+
6. The `AddPrivilegeRoleRequest` method adds the `prvReadQueue` and `prvAppendToQueue` privileges to the example role.
4242

4343
### Demonstrate
4444

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: " Assign a record to a new owner (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 records to a new owner." # 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+
# Assign a record to a new owner
20+
21+
This sample shows how to assign an account to another user by using the [IOrganizationService.Update](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.iorganizationservice.update?view=dynamics-general-ce-9) message.
22+
23+
This sample uses the `IOrganization.Update` method rather than the [AssignRequest](https://docs.microsoft.com/dotnet/api/microsoft.crm.sdk.messages.assignrequest?view=dynamics-general-ce-9) because there is an effort to remove specialized messages. More information: [Perform specialized operations using update](https://docs.microsoft.com/powerapps/developer/common-data-service/special-update-operation-behavior)
24+
25+
You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/AssignRecordToNewOwner).
26+
27+
## How to run this sample
28+
29+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
30+
31+
## What this sample does
32+
33+
The [IOrganizationService.Update](https://docs.microsoft.com/dotnet/api/microsoft.xrm.sdk.iorganizationservice.update?view=dynamics-general-ce-9) message is intended to be used in a scenario where it contains the data that is needed to update existing record.
34+
35+
## How this sample works
36+
37+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
38+
39+
### Setup
40+
41+
1. Checks for the current version of the org.
42+
1. Creates required data that this sample requires.
43+
44+
### Demonstrate
45+
46+
1. The `Retrieve` method retrieves the account records created in the setup(#setup).
47+
1. The `Update` message updates the `ownerid` attribute to the user who you want to own the record.
48+
49+
### Clean up
50+
51+
Displays an option to delete all the data created in the sample. The deletion is optional in case you want to examine the data created by the sample. You can manually delete the data to achieve same results.

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/AssociateSecurityRoleToUser)
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.

0 commit comments

Comments
 (0)