Updated readme

This commit is contained in:
Hugo Bernier 2020-10-02 18:38:56 -04:00
parent 0fbe0d1edc
commit 43404792dc
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,8 @@
# Create To Do Task from Email (Outlook Add in) # Create To Do Task from Email (Outlook Add in)
## Summary ## Summary
This webpart allows us to create a new To Do task using the new ToDo MS Graph endpoint. If deployed as an Outlook Add In, the Task title comes from email subject. Let´s say this is similar to the OOTB "Flag" action, but here you can select the ToDo List where to store the Task, and you can modify the Title before adding it.
This web part allows us to create a new To Do task using the new ToDo MS Graph endpoint. If deployed as an Outlook Add In, the Task title comes from email subject. Let´s say this is similar to the OOTB "Flag" action, but here you can select the ToDo List where to store the Task, and you can modify the Title before adding it.
![Create ToDo task](./assets/spfx-todo-outlook.gif) ![Create ToDo task](./assets/spfx-todo-outlook.gif)
@ -10,6 +11,7 @@ This webpart allows us to create a new To Do task using the new ToDo MS Graph en
As of today, To Do endpoint is not very well documented yet. It was presented in latest Build 2020. Here are some of the basic operations. You can get more information and see the Build session from this link: [https://developer.microsoft.com/en-us/office/blogs/introducing-the-new-microsoft-graph-to-do-api/](https://developer.microsoft.com/en-us/office/blogs/introducing-the-new-microsoft-graph-to-do-api/) As of today, To Do endpoint is not very well documented yet. It was presented in latest Build 2020. Here are some of the basic operations. You can get more information and see the Build session from this link: [https://developer.microsoft.com/en-us/office/blogs/introducing-the-new-microsoft-graph-to-do-api/](https://developer.microsoft.com/en-us/office/blogs/introducing-the-new-microsoft-graph-to-do-api/)
### Get lists ### Get lists
GET https://graph.microsoft.com/beta/me/todo/lists GET https://graph.microsoft.com/beta/me/todo/lists
### Create new List ### Create new List
@ -23,9 +25,11 @@ POST https://graph.microsoft.com/beta/me/todo/lists
``` ```
### Get tasks in list ### Get tasks in list
GET https://graph.microsoft.com/beta/me/todo/lists/{listId}/tasks GET https://graph.microsoft.com/beta/me/todo/lists/{listId}/tasks
### Create new Task in List ### Create new Task in List
POST https://graph.microsoft.com/beta/me/todo/lists/{listId}/tasks POST https://graph.microsoft.com/beta/me/todo/lists/{listId}/tasks
```json ```json
@ -72,6 +76,7 @@ Version|Date|Comments
```ps ```ps
spo serviceprincipal grant add --resource "Microsoft Graph" --scope "Tasks.ReadWrite" spo serviceprincipal grant add --resource "Microsoft Graph" --scope "Tasks.ReadWrite"
``` ```
* deploy spfx solution as Outlook add-in following instructions here: [https://docs.microsoft.com/en-us/sharepoint/dev/spfx/office-addins-create#deployment-of-your-add-in](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/office-addins-create#deployment-of-your-add-in) * deploy spfx solution as Outlook add-in following instructions here: [https://docs.microsoft.com/en-us/sharepoint/dev/spfx/office-addins-create#deployment-of-your-add-in](https://docs.microsoft.com/en-us/sharepoint/dev/spfx/office-addins-create#deployment-of-your-add-in)
## Features ## Features