When I post message to channel using graph api, I can't see the message.

Daniel Camcho 20 Reputation points
2025-01-31T21:10:22.2333333+00:00

Hello everyone.

Hope you are doing well.

Currently, I am working on Microsoft API and going to send a message automatically using graph api.
Here are reference links what I am using.
https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams
https://learn.microsoft.com/en-us/graph/api/chat-post-messages?view=graph-rest-1.0&tabs=http

API works correctly, but the chat page is not updated as long as I don't import the chat using weburl manually.

My goal is to update the chat page as soon as message is sent by API. I spent on this issue for a couple of days but was not able to find out the solution yet.

User's image

Any help would be appreciated.
Thank you,

Daniel

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,777 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,930 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 175 Reputation points Microsoft Vendor
    2025-02-03T00:22:37.8166667+00:00

    Hello Daniel Camcho,

    Thank you for reaching out to Microsoft!!

    While posting message to channel in Teams using Graph API, if you want to update the chat page as soon as the message is sent by API, could you try using the Delegated permissions in the Graph Explorer as I am able to see the message in channel while using the Graph API with delegated permissions.

    Please try executing the Graph API using Graph Explorer by signing in as a user.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.