Deep link for thread reply #1391
Unanswered
Rewan Ibrahim (ronysalem)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
i am developing an app with the graph api for Microsoft Teams, and I'm trying to get the mentions the user has. My issue is that I am using the search api, and when returning the webURL, if the mention is in a reply, not a thread, the URL is broken. How to fix that
Here is a sample of URL copied from MS Teams UI that is working :
https://teams.microsoft.com/l/message/19:xQZgFPibvWwT6QGUn7Z2P6JWp-juNerlaPajkqpv9h01@thread.tacv2/1762787826440?tenantId=c515f6b1-812f-4d6c-9542-d914e95b3df1&groupId=4f74fdc3-43c5-4ba3-ad56-36d00d299426&parentMessageId=1762771615042&teamName=Digital%20Transformation&channelName=General&createdTime=1762787826440
And here is the webURL returned from the search api :
https://teams.microsoft.com/l/message/19%3axQZgFPibvWwT6QGUn7Z2P6JWp-juNerlaPajkqpv9h01%40thread.tacv2/1762787826440
And the search api doesn't return the replyToID property
Please help me and tell me what to do.
Find below my code
`async def teams_get_my_mentions(
limit: int = 20,
days_back: int = 7,
cutoff_day: Optional[str] = None,
) -> str:
"""
Get messages that mention the current user with resolved team/channel/chat names,
using proper paging and an optional daily cut-off.
`
All reactions