Trying to get Posts from a conversation thread in Power Automate using Graph API

Riemer, Klaus-Peter 1 Reputation point
2021-08-23T09:43:36.367+00:00

Hi,
I'm trying to get a list of posts for a conversation/thread via the "Send http request" action for Office 365 Groups in Power Automate.

With this activity I'm able to get a list of threads for a given group using "https://graph.microsoft.com/v1.0/groups/[Specific ID removed]/threads" successfully.
In a next step, I take the "id" of a thread returned by the the first step and try a GET request to "https://graph.microsoft.com/v1.0/groups/[Specific ID removed]/threads/[Specific ID removed]/posts" according to https://learn.microsoft.com/en-us/graph/api/conversationthread-list-posts. This fails with this message:
{
"error": {
"code": "ErrorInvalidIdMalformed",
"message": "Id is malformed."
}
}
Im pretty sure the Id should be correct as i took it directly from the result of querying the threads before. Also the ID used looks pretty similar to the example given on the docs page mentioned above (in terms of length and characters).

I would appreciate any more hints to get this working ... Thanks in advance ...

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,521 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 37,786 Reputation points
    2021-08-24T02:56:18.61+00:00

    This must be caused by your thread id error. I can also enter the wrong id to reproduce your problem. So I suggest you check your id again to make sure it is correct.

    This is my test process using Graph Explorer:

    1. Get the thread id:

    125862-273.png

    2. Call the /posts endpoint:

    125861-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.