Skip to content

Commit eb8eb4e

Browse files
committed
Updating target email gathering
1 parent 424e086 commit eb8eb4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/purview/quickstart-data-share-dotnet.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Download and install [Azure .NET SDK](https://azure.microsoft.com/downloads/) on
3131
## Create an application in Azure Active Directory
3232

3333
1. In [Create an Azure Active Directory application](../active-directory/develop/howto-create-service-principal-portal.md#register-an-application-with-azure-ad-and-create-a-service-principal), create an application that represents the .NET application you're creating in this tutorial. For the sign-on URL, you can provide a dummy URL as shown in the article (`https://contoso.org/exampleapp`).
34-
1. In [Get values for signing in](../active-directory/develop/howto-create-service-principal-portal.md#get-tenant-and-app-id-values-for-signing-in), get the **application ID** and **tenant ID**, and note down these values that you use later in this tutorial.
34+
1. In [Get values for signing in](../active-directory/develop/howto-create-service-principal-portal.md#get-tenant-and-app-id-values-for-signing-in), get the **application ID**,**tenant ID**, and **object ID**, and note down these values that you use later in this tutorial.
3535
1. In [Certificates and secrets](../active-directory/develop/howto-create-service-principal-portal.md#authentication-two-options), get the **authentication key**, and note down this value that you use later in this tutorial.
3636
1. [assign the application to these roles:](../active-directory/develop/howto-create-service-principal-portal.md#assign-a-role-to-the-application)
3737

@@ -58,6 +58,8 @@ Next, create a C# .NET console application in Visual Studio:
5858
Install-Package Microsoft.Azure.Purview.Share.ManagementClient
5959
Install-Package Microsoft.Azure.Management.ResourceManager -IncludePrerelease
6060
Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory
61+
Install-Package Azure.Analytics.Purview.Share
62+
Install-Package Azure.Analytics.Purview.Account
6163
```
6264
6365
## Create a sent share
@@ -230,7 +232,7 @@ if (responseInvitation == null)
230232
return;
231233
}
232234
var responseInvitationDocument = JsonDocument.Parse(responseInvitation);
233-
var targetEmail = responseInvitationDocument.RootElement.GetProperty("name");
235+
var targetEmail = responseInvitationDocument.RootElement.GetProperty("properties").GetProperty("targetEmail");
234236
```
235237

236238
## View received invitations

0 commit comments

Comments
 (0)