How can I create a Planner Task Checklist? #2083
-
The example on creating a planner task checklist on throws a Microsoft.Graph.Models.ODataErrors.ODataError exception . PlannerTests.cs hasn't been updated for the 5.X version yet. I'm using the following code: ` public async static Task UpdateDetailsOfTaskAddChecklist(GraphServiceClient graphClient, PlannerTask plannerTask, string[] checklistItems)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This should be resolved in the latest version 5.24.0 by specifying the type foreach (var i in checklistItems)
{
requestBody.Checklist.AdditionalData.Add(Guid.NewGuid().ToString(),
new PlannerChecklistItem
{
OdataType = "microsoft.graph.plannerChecklistItem",
Title = i,
IsChecked = false
}
);
} |
Beta Was this translation helpful? Give feedback.
This should be resolved in the latest version 5.24.0 by specifying the type
PlannerChecklistItem