You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/developer/data-platform/org-service/quick-start-org-service-console-app.md
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ Your application will call the <xref:Microsoft.Xrm.Sdk.IOrganizationService>.<xr
28
28
> [!NOTE]
29
29
> This quick start example does not include exception handling for brevity. This is a minimum code example of what you need to connect to and use the Organization service.
30
30
31
+
You can download the complete code sample from GitHub [quickstart-execute-request](https://github.com/microsoft/PowerApps-Samples/blob/master/dataverse/orgsvc/C%23-NETCore/GetStarted/quickstart-execute-request/).
32
+
31
33
## Prerequisites
32
34
33
35
- Visual Studio (2019 or later)
@@ -38,7 +40,7 @@ Your application will call the <xref:Microsoft.Xrm.Sdk.IOrganizationService>.<xr
38
40
39
41
## Create Visual Studio project
40
42
41
-
1. Create a new .NET console app project. For this project we are Visual Studio 2022 and targeting .NET 6, but .NET Framework will also work.
43
+
1. Create a new .NET console app project. For this project we are using Visual Studio 2022 and targeting .NET 6, but .NET Framework will also work.
42
44
43
45

44
46
@@ -106,11 +108,15 @@ Your application will call the <xref:Microsoft.Xrm.Sdk.IOrganizationService>.<xr
106
108
```
107
109
108
110
1. Changethevaluesfor the environment URL, username, and password as indicated by the TODO code comment.
109
-
You can find supported values for *AuthType* listed in [Connection string parameters](../xrm-tooling/use-connection-strings-xrm-tooling-connect.md). YoucanfindyourenvironmentURLinthelegacywebapplicationunder**Settings>Customization>DeveloperResources**orinPowerApps**Settings** (gearicon) >**DeveloperResources**.
111
+
112
+
> [!NOTE]
113
+
> You can find supported values for *AuthType* listed in [Connection string parameters](../xrm-tooling/use-connection-strings-xrm-tooling-connect#connection-string-parameters.md). YoucanfindyourenvironmentURLinthelegacywebapplicationunder**Settings>Customization>DeveloperResources**orinPowerApps**Settings** (gearicon) >**DeveloperResources**.
114
+
>
115
+
>Whilethiscodesampleplacestheusername/passwordinformationinthecodefor simplicity, other code samples will use the more recommended approach of prompting for that information or storing it in a separate App.config or appsettings.json file.
The console app demonstrates how to connect to the Organization web service using a connection string, execute a web service message request, and access some data in the response. Next, you may want to look at common web service data operations like create, retrieve, update, and delete.
0 commit comments