The Microsoft 365 Planner API lets you tap into the robust task management capabilities of Planner within the Microsoft 365 suite. With this API on Pipedream, you can automate tasks, sync Planner data with other services, manage plans, tasks, and buckets programmatically. This opens up possibilities for creating custom workflows to enhance productivity, streamline project tracking, and maintain synchronization across various platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_365_planner: {
type: "app",
app: "microsoft_365_planner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/me`,
headers: {
Authorization: `Bearer ${this.microsoft_365_planner.$auth.oauth_access_token}`,
},
})
},
})
Task Synchronization Workflow: Automatically sync new or updated Planner tasks to a different task management tool like Trello or Asana. Whenever a task is created or modified in Planner, Pipedream triggers a workflow that updates or creates a corresponding card/task in the external tool, ensuring alignment across your task management ecosystems.
Meeting Prep Workflow: Prior to a scheduled meeting, compile a list of incomplete tasks from Planner and send it via email using the Microsoft 365 Outlook service. This workflow helps participants stay informed about pending items and encourages accountability and preparation before meetings.
Resource Management Workflow: When a new task is assigned to a team member in Planner, trigger a workflow that logs this assignment in a Google Sheets spreadsheet. An additional step could involve checking the team member's current task load, and if it exceeds a certain threshold, send a notification via Slack to the project manager for workload balancing.
Create a new bucket in Microsoft 365 Planner. See the documentation
Create a new plan in Microsoft 365 Planner. See the documentation
Create a new task in Microsoft 365 Planner. See the documentation
List all user tasks in Microsoft 365 Planner. See the documentation
Updates a task in Microsoft 365 Planner. See the documentation
Microsoft 365 Planner uses OAuth authentication. When you connect your Microsoft 365 Planner account, Pipedream will open a popup window where you can sign into Microsoft 365 Planner and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Microsoft 365 Planner API.
Pipedream requests the following authorization scopes when you connect your account:
email
offline_access
openid
profile
Group.ReadWrite.All
Files.ReadWrite
Files.Read.All
MailboxSettings.Read
Tasks.ReadWrite
User.Read
User.Read.All
GET
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://login.microsoftonline.com/common/oauth2/v2.0/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
&
scope={{oauth.space_separated_scopes}}
POST
https://login.microsoftonline.com/common/oauth2/v2.0/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}