Created
May 9, 2018 16:23
-
-
Save tabakerov/f428e28ae9b68462d1049c018df59104 to your computer and use it in GitHub Desktop.
How to add extension to user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenTypeExtension newExtension = new OpenTypeExtension(); | |
newExtension.ExtensionName = "com.contoso.trackingKey"; | |
newExtension.AdditionalData = new Dictionary<string, object>(); | |
newExtension.AdditionalData.Add("trackingKeyMajor", "ABC"); | |
newExtension.AdditionalData.Add("trackingKeyMinor", "123"); | |
var extension = await graphClient.Users[email].Extensions.Request().AddAsync(newExtension); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment