Skip to content

Commit

Permalink
Add missing Tasks endpoint
Browse files Browse the repository at this point in the history
Adding missing task endpoint to get all tasks on Me object.
  • Loading branch information
bcameron1231 committed Oct 2, 2023
1 parent c08e0bc commit 3d67e71
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/graph/planner.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,20 @@ const updPlan = await graph.planner.plans.getById('planId').update({title: 'New

```

## Get All My Tasks from all plans

Using the tasks() you can get the Tasks across all plans

```TypeScript
import { graphfi } from "@pnp/graph";
import "@pnp/graph/planner";

const graph = graphfi(...);

const planTasks = await graph.me.tasks()

```

## Get Task by Id

Using the planner.tasks.getById() you can get a specific Task.
Expand Down

0 comments on commit 3d67e71

Please sign in to comment.