Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 806 Bytes

File metadata and controls

31 lines (24 loc) · 806 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 5.x

// Dependencies
using Microsoft.Graph.Beta.Models;

var requestBody = new WorkbookCommentReply
{
	RichContent = "<at id=\"0\">Kate Kristensen</at> - Can you take a look?",
	Mentions = new List<WorkbookCommentMention>
	{
		new WorkbookCommentMention
		{
			Id = 0,
			Name = "Kate Kristensen",
			Email = "kakri@contoso.com",
		},
	},
	ContentType = "mention",
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Drives["{drive-id}"].Items["{driveItem-id}"].Workbook.Comments["{workbookComment-id}"].Replies.PostAsync(requestBody);