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) |
Answered by
andrueastman
Aug 30, 2023
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
}
);
} |
1 reply
Answer selected by
andrueastman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be resolved in the latest version 5.24.0 by specifying the type
PlannerChecklistItem