Skip to content

Commit b52b6f0

Browse files
authored
Live publish
2 parents d777e39 + b6799a2 commit b52b6f0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

powerapps-docs/developer/data-platform/org-service/quick-start-org-service-console-app.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Quickstart: Organization service sample (C#) (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "This quickstart will show you how to connect to the organization service of the Microsoft Dataverse" # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 04/25/2019
5+
ms.date: 02/13/2021
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "article"
@@ -17,8 +17,6 @@ search.app:
1717
---
1818
# Quickstart: Organization service sample (C#)
1919

20-
[!INCLUDE[cc-data-platform-banner](../../../includes/cc-data-platform-banner.md)]
21-
2220
This is where you begin working with the .NET SDK assemblies to work with data using Microsoft Dataverse.
2321

2422
In this quickstart, you will create a minimum console application to connect to the Organization service using the <xref:Microsoft.Xrm.Tooling.Connector.CrmServiceClient> class. You will pass your connection information using a connection string passed to the constructor.
@@ -31,7 +29,7 @@ You will use the <xref:Microsoft.Xrm.Sdk.IOrganizationService>.<xref:Microsoft.X
3129

3230
## Prerequisites
3331

34-
- Visual Studio (2017 recommended)
32+
- Visual Studio (2019 recommended)
3533
- Internet connection
3634
- Valid user account for a Dataverse instance
3735
- Your username
@@ -82,9 +80,12 @@ You will use the <xref:Microsoft.Xrm.Sdk.IOrganizationService>.<xref:Microsoft.X
8280

8381
string conn = $@"
8482
Url = {url};
85-
AuthType = Office365;
83+
AuthType = OAuth;
8684
UserName = {userName};
8785
Password = {password};
86+
AppId = 51f81489-12ee-4a9e-aaae-a2591f45987d;
87+
RedirectUri = app://58145B91-0C36-4500-8554-080854F2AC97;
88+
LoginPrompt=Auto;
8889
RequireNewInstance = True";
8990

9091
using (var svc = new CrmServiceClient(conn))

0 commit comments

Comments
 (0)