Skip to content

Commit 35f1a79

Browse files
authored
Merge pull request #1508 from MicrosoftDocs/master
Pushing changes live
2 parents abd9128 + 8c87221 commit 35f1a79

File tree

8 files changed

+50
-35
lines changed

8 files changed

+50
-35
lines changed

powerapps-docs/developer/common-data-service/org-service/early-bound-programming.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,26 @@ Which style you choose to use is up to you. The following table provides the adv
136136

137137
Because all the generated classes inherit from the <xref:Microsoft.Xrm.Sdk.Entity> class used with late-bound programming, you can work with entities, attributes, and relationships not defined within classes.
138138

139-
### Example
139+
### Examples
140+
141+
The following example shows one way to mix early and late binding methods using <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext>.
142+
143+
```csharp
144+
// Create an organization service context object
145+
AWCServiceContext context = new AWCServiceContext(_serviceProxy);
146+
147+
// Instantiate an account object using the Entity class.
148+
Entity testaccount = new Entity("account");
149+
150+
// Set several attributes. For account, only the name is required.
151+
testaccount["name"] = "Fourth Coffee";
152+
testaccount["emailaddress1"] = "[email protected]";
153+
154+
// Save the entity using the organization service context object.
155+
context.AddToAccountSet(testaccount);
156+
context.SaveChanges();
157+
158+
```
140159

141160
If a custom attribute was not included in the generated classes, you can still use it.
142161

@@ -154,6 +173,17 @@ var account = new Account();
154173
Guid accountid = svc.Create(account);
155174
```
156175

176+
#### Assign an early bound instance to a late bound instance
177+
The following sample shows how to assign an early bound instance to a late bound instance.
178+
179+
```csharp
180+
Entity incident = ((Entity)context.InputParameters[ParameterName.Target]).ToEntity<Incident>();
181+
Task relatedEntity = new Task() { Id = this.TaskId };
182+
183+
incident.RelatedEntities[new Relationship("Incident_Tasks")] =
184+
new EntityCollection(new Entity[] { relatedEntity.ToEntity<Entity>() });
185+
```
186+
157187
### See also
158188

159189
[Entity Operations using the Organization service](entity-operations.md)<br />

powerapps-docs/developer/common-data-service/org-service/organizationservicecontext.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,17 @@ if (pam != null)
8585
Task firstTask = pam.Contact_Tasks.FirstOrDefault();
8686
}
8787
```
88+
### Use the AddLink method
89+
You can use the <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.AddLink(Microsoft.Xrm.Sdk.Entity,Microsoft.Xrm.Sdk.Relationship,Microsoft.Xrm.Sdk.Entity)> method to create associations. You must call the <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.SaveChanges> method before the server is updated with the new link information.
8890

91+
The following code example shows how to create an association between a contact and an account.
92+
93+
```csharp
94+
Relationship relationship = new Relationship("account_primary_contact");
95+
context.AddLink(contact, relationship, account);
96+
context.SaveChanges();
97+
```
98+
8999
<a name="save_changes"></a>
90100

91101
## Save changes

powerapps-docs/developer/component-framework/create-custom-controls-using-pcf.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ ms.assetid: d2cbf58a-9112-45c2-b823-2c07a310714c
1818

1919
Use PowerApps Command Line Interface (CLI) to create, debug and deploy custom PowerApps component framework components. PowerApps CLI will enable developers to quickly create PowerApps component framework components and will in the future be expanded to include support for additional development and Application Lifecycle Management (ALM) experiences.
2020

21-
## What is Microsoft PowerApps CLI
21+
## What is Microsoft PowerApps CLI?
2222

2323
Microsoft PowerApps CLI is a simple, single-stop developer command line interface enabling you to create custom component. PowerApps CLI is also the first step towards a comprehensive ALM story where enterprise developers and ISVs can create, build, debug and publish their PowerApps and Dynamics 365 for Customer Engagement apps extensions and customizations quickly and efficiently.
2424

25+
> [!IMPORTANT]
26+
> - Microsoft PowerApps CLI tools are a pre-release version and may be different from the commercially released version.
27+
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
28+
> - If you give feedback about the software to Microsoft, you give to Microsoft, without charge, the right to use, share and commercialize your feedback in any way and for any purpose.
29+
> - Microsoft doesn't provide support for this preview feature. Microsoft Technical Support won’t be able to help you with issues or questions.
30+
2531
## Prerequisites to use PowerApps CLI
2632

2733
To use PowerApps CLI you will need the following:
@@ -32,11 +38,7 @@ To use PowerApps CLI you will need the following:
3238
- Option 2: Install .NET Core 2.2 SDK and install Visual Studio Code
3339
- Install Microsoft PowerApps CLI from [here](http://download.microsoft.com/download/D/B/E/DBE69906-B4DA-471C-8960-092AB955C681/powerapps-cli-0.1.51.msi)
3440

35-
> [!IMPORTANT]
36-
> - Microsoft PowerApps CLI tools are a pre-release version and may be different from the commercially released version.
37-
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
38-
> - If you give feedback about the software to Microsoft, you give to Microsoft, without charge, the right to use, share and commercialize your feedback in any way and for any purpose.
39-
> - Microsoft doesn't provide support for this preview feature. Microsoft Technical Support won’t be able to help you with issues or questions.
41+
4042

4143
> [!NOTE]
4244
> To deploy your custom component, you will need Common Data Service environment with System administrator or System customizer privileges.

powerapps-docs/developer/component-framework/custom-controls-overview.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ Custom components are a type of solution component, which means they can be incl
1717

1818
You add custom components by including them in a solution and then importing it into the system. Once they are in the system, admin and system customizers can configure form fields, sub-grids, views, and dashboard sub-grids to use them in place of default component.
1919

20-
> [!IMPORTANT]
21-
> - PowerApps component framework is a preview feature.
22-
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
23-
> - [!INCLUDE[cc_preview_features_no_MS_support](../../includes/cc-preview-features-no-ms-support.md)]
24-
2520
Custom components are comprised into three components:
2621

2722
1. Manifest

powerapps-docs/developer/component-framework/faq.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ ms.author: "nabuthuk"
1717

1818
It is not possible to define multiple components in a single manifest file.
1919

20-
> [!IMPORTANT]
21-
> - PowerApps component framework is a preview feature.
22-
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
23-
> - [!INCLUDE[cc_preview_features_no_MS_support](../../includes/cc-preview-features-no-ms-support.md)]
24-
2520
## Calling Processes/Actions
2621

2722
This is not supported. As of today, you can only call dialog boxes using the [Navigation](reference/navigation.md) method.

powerapps-docs/developer/component-framework/implementing-controls-using-typescript.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ ms.author: "nabuthuk"
1515

1616
This tutorial will walk you through creating a new custom component in Typescript. The sample component is a linear input component. The linear input component enables users to enter numeric values using a visual slider instead of directly keying in values.
1717

18-
> [!IMPORTANT]
19-
> - Microsoft PowerApps CLI tools are a pre-release version and may be different from the commercially released version.
20-
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
21-
> - If you give feedback about the software to Microsoft, you give to Microsoft, without charge, the right to use, share and commercialize your feedback in any way and for any purpose.
22-
> - Microsoft doesn't provide support for this preview feature. Microsoft Technical Support won’t be able to help you with issues or questions.
23-
2418
## Creating a new component project
2519

2620
To create a new project, follow the steps below:

powerapps-docs/developer/component-framework/limitations.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ ms.author: "nabuthuk"
1616

1717
With the release of PowerApps component framework, you can now create your own custom components to improve the user experience in model-driven apps. Even though you can create your own components, there are some limitations that restrict developers implementing some features in the custom components. Below are some of the limitations:
1818

19-
> [!IMPORTANT]
20-
> - PowerApps component framework is a preview feature.
21-
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
22-
> - [!INCLUDE[cc_preview_features_no_MS_support](../../includes/cc-preview-features-no-ms-support.md)]
23-
2419
## Support for external libraries
2520

2621
For public preview, components should bundle all code including external library content into the primary code bundle. To see an example of how the PowerApps command line interface can help with bundling your external library content into a component-specific bundle, see [Angular flip component](sample-controls/angular-flip-control.md) example.
@@ -31,4 +26,4 @@ For public preview, components should bundle all code including external library
3126
## Related topics
3227

3328
[PowerApps component framework API Reference](reference/index.md)<br/>
34-
[PowerApps component framework Overview](overview.md)
29+
[PowerApps component framework Overview](overview.md)

powerapps-docs/developer/component-framework/updating-existing-controls.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ ms.assetid: d2cbf58a-9112-45c2-b823-2c07a310714c
1717

1818
If you are a PowerApps component framework Private Preview participant and have already built custom components, you will need to make some minor updates to make it compatible with the new ALM-centric project structures. To use the new PowerApps component framework build tools with your existing PowerApps component framework custom component source, a few changes are required.
1919

20-
> [!IMPORTANT]
21-
> - Microsoft PowerApps CLI tools are a pre-release version and may be different from the commercially released version.
22-
> - [!INCLUDE[cc_preview_features_definition](../../includes/cc-preview-features-definition.md)]
23-
> - If you give feedback about the software to Microsoft, you give to Microsoft, without charge, the right to use, share and commercialize your feedback in any way and for any purpose.
24-
> - Microsoft doesn't provide support for this preview feature. Microsoft Technical Support won’t be able to help you with issues or questions.
25-
2620
## Creating an empty project
2721

2822
Use PowerApps CLI to create a new empty project for your custom component. More information [Create components using tooling](create-custom-controls-using-pcf.md).

0 commit comments

Comments
 (0)