Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 871 Bytes

File metadata and controls

30 lines (23 loc) · 871 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 PlannerTaskChatMessage
{
	Content = "<div>Updated message with <span itemid=\"0\" itemtype=\"https://schema.skype.com/Mention/Person\"></span> mention</div>",
	Mentions = new List<PlannerTaskChatMention>
	{
		new PlannerTaskChatMention
		{
			Mentioned = "6463a5ce-2119-4198-9f2a-628761df4a62",
			Position = 0,
			MentionType = PlannerTaskChatMentionType.User,
		},
	},
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Planner.Tasks["{plannerTask-id}"].Messages["{plannerTaskChatMessage-id}"].PatchAsync(requestBody);