Forum Discussion
How can i add a comment using GRAPH API in Planner
Maybe SanthoshB1 could help here
https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/group_post_threads
To update that conversation to task use conversationThreadId
https://graph.microsoft.io/en-us/docs/api-reference/beta/api/task_update
- Robin VermeirschOct 19, 2016Brass ContributorUnfortunately getting them works, but the post doe not. It adds them to the office 365 group but they are not visible in the planner
- Christophe DIONNov 30, 2017Copper Contributor
Hello,
Sorry "A year later", I was looking to do the same thing and find this post.
I used https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/conversationthread_reply to understand how to publish a new comment from Graphwith POST https://graph.microsoft.com/v1.0/groups/[GroupID]/threads/[ConversationID]/reply
And body content like
{ "post": { "body": { "contentType": "1", "content": "Hello from Graph" } } }To find the conversationID i use:
https://graph.microsoft.com/v1.0/groups/[GroupID]/threadsor
https://graph.microsoft.com/v1.0/Planner/Plans/[PlanId]/tasks
or
https://graph.microsoft.com/v1.0/Planner/tasks/[TaskID]To find PlanID or GroupId, just browse to you planner, it's in the URL
Let's play with this :)
/Christophe
- _1asok-12220Sep 04, 2019Copper Contributor
I tried with graph explorer it shows success but it doesnot post the comment in the planner taskChristophe DION What am I missing here. Problem is I can get conversation thread id once the first comment is posted but to post the first comment your way is not working