Posts

Display Planner MyTasks using spfx webpart

Image
Hi,   The requirement was   To display MyTasks from the planner in Outlook 365. By default in the webpart, tasks should be displayed for today that are assigned to me In the webpart, if date is selected, my tasks should be displayed as per the selected date.   Below is the source code that has been written to achieve the outcome   //IPlannerSpProps.ts   import { WebPartContext } from "@microsoft/sp-webpart-base";   export interface IPlannerSpProps {   description: string;   isDarkTheme: boolean;   environmentMessage: string;   hasTeamsContext: boolean;   userDisplayName: string;   context:WebPartContext }   //PlannerSpWebPart.ts import * as React from 'react'; import * as ReactDom from 'react-dom'; import { Version } from '@microsoft/sp-core-library'; import {   type IPropertyPaneConfiguration,   PropertyPaneTextField } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@microsoft/sp-webpa...