Skip to content

Commit 0671fd4

Browse files
authored
Merge branch 'live' into live
2 parents df406a0 + c31f1d0 commit 0671fd4

File tree

97 files changed

+18882
-494
lines changed

Some content is hidden

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

97 files changed

+18882
-494
lines changed

powerapps-docs/developer/common-data-service/best-practices/business-logic/optimize-assembly-development.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: "Consider merging separate plug-ins/custom workflow activities into
44
services: ''
55
suite: powerapps
66
documentationcenter: na
7-
author: jowells
8-
manager: austinj
7+
author: JimDaly
8+
manager: sunilg
99
editor: ''
1010
tags: ''
1111
ms.service: powerapps
@@ -14,7 +14,7 @@ ms.topic: article
1414
ms.tgt_pltfrm: na
1515
ms.workload: na
1616
ms.date: 1/15/2019
17-
ms.author: jowells
17+
ms.author: phecke
1818
search.audienceType:
1919
- developer
2020
search.app:
@@ -33,26 +33,30 @@ search.app:
3333

3434
When developing custom assemblies, there are a couple of considerations to take in:
3535

36+
1. Assemblies with a large number of custom workflow activities can take a long time to upload when being registered.
3637
1. Multiple different custom assemblies
3738
- Increased maintainability complexity
3839
- Potential increase plug-in execution length
40+
1. Sandbox assembly size constraint is 16 MB in Common Data Service.
3941

40-
2. Sandbox assembly size constraint is 16 MB in Common Data Service.
4142

4243
<a name='guidance'></a>
4344

4445
## Guidance
4546

46-
> [!NOTE]
47-
> Further Guidance clarification is under development regarding specific details in optimizing assembly development, such as, how to merge separate plug-ins into a single custom assembly and suggestions to minimize the assembly size.
47+
### Limit the number of Custom Workflow Activities in a Single assembly
48+
49+
When an assembly that contains custom workflow activities is uploaded during plug-in registration, additional checks are required for custom workflow activities.
50+
51+
While an assembly with hundreds of ordinary plug-in types may be uploaded very quickly, an assembly with more than 100 custom workflow activities may take several minutes or even time out when being registered or updated. We recommend including no more than 50 custom workflow activities in a single assembly.
4852

4953
### Consolidate Plug-ins or Custom Workflow Activities into a Single Assembly
5054

5155
Plug-ins and custom workflow activities developed for a Common Data Service solution should exist with others in a single Visual Studio project. Consider merging separate plug-ins/custom workflow activities into a single Visual Studio project/assembly unless the plug-ins fall into the following exceptions:
5256

5357
1. A plug-in/custom workflow activity needs to be selectively deployed to one environment but not to others.
54-
55-
2. The physical assembly size is near or greater than 16 MB for a Common Data Service instance.
58+
1. The physical assembly size is near or greater than 16 MB for a Common Data Service instance.
59+
1. There will be more than 50 custom workflow activities in the assembly, as mentioned in [Limit the number of Custom Workflow Activities in a Single assembly](#limit-the-number-of-custom-workflow-activities-in-a-single-assembly)
5660

5761

5862
### Move Plug-ins/Custom Workflow Activities into Multiple Assemblies
@@ -63,7 +67,12 @@ Power Apps and Dynamics 365 (online) has an assembly size constraint of 16 MB wh
6367

6468
## Problematic patterns
6569

70+
### Assemblies take a long time to upload when being registered
71+
72+
When a custom workflow activity type plug-in is uploaded while being registered, each type requires additional validation checking. When an assembly contains more than a hundred custom workflow activity type plug-ins, it could require several minutes to complete the checks and is at risk of timing out.
73+
6674
### Multiple assemblies
75+
6776
Having multiple assemblies has a couple of areas that can be impacted:
6877

6978
1. Performance - each assembly has a lifecycle that is managed by Common Data Service. This includes loading, caching, and unloading the assemblies. Having more than one assembly causes more work to be done on the server, loading and caching an assembly, and could affect the overall plug-in/custom workflow activity execution length.

powerapps-docs/developer/common-data-service/best-practices/work-with-data/index.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
<<<<<<< HEAD
2+
---
3+
title: "Developers: Best practices and guidance around working with data for the Common Data Service | Microsoft Docs"
4+
description: Best practices and guidance around working with data for developers of the Common Data Service in Power Apps.
5+
services: ''
6+
suite: powerapps
7+
documentationcenter: na
8+
author: jowells
9+
manager: austinj
10+
editor: ''
11+
tags: ''
12+
ms.service: powerapps
13+
ms.devlang: na
14+
ms.topic: article
15+
ms.tgt_pltfrm: na
16+
ms.workload: na
17+
ms.date: 12/12/2018
18+
ms.author: jowells
19+
search.audienceType:
20+
- developer
21+
search.app:
22+
- PowerApps
23+
- D365CE
24+
---
25+
26+
# Best practices and guidance around working with data for the Common Data Service
27+
28+
This list below contains all of the best practices and guidance around integrating data using code with the Common Data Service.
29+
30+
|Best Practice |Description |
31+
|---------|---------|
32+
|[Service Protection API Limits (Common Data Service)](../../api-limits.md) |Understand the limits for API requests. |
33+
34+
### See Also
35+
[Work with data using code in Common Data Service (PowerApps)](../../work-with-data-cds.md)<br />
36+
=======
137
---
238
title: "Developers: Best practices and guidance around working with data for the Common Data Service | Microsoft Docs"
339
description: Best practices and guidance around working with data for developers of the Common Data Service in Power Apps.
@@ -31,4 +67,5 @@ This list below contains all of the best practices and guidance around integrati
3167
|[Service Protection API Limits (Common Data Service)](../../api-limits.md) |Understand the limits for API requests. |
3268

3369
### See Also
34-
[Work with data using code in Common Data Service (Power Apps)](../../work-with-data-cds.md)<br />
70+
[Work with data using code in Common Data Service (Power Apps)](../../work-with-data-cds.md)<br />
71+
>>>>>>> ae864535ae5aab1966c3c5bd8c4250316a788d91

0 commit comments

Comments
 (0)