Forum Discussion

AyeshaKulsumSJ's avatar
AyeshaKulsumSJ
Brass Contributor
Aug 29, 2022
Solved

Navigate user to particular message in channel upon clicking a button in Personal Chat adaptive card

I am sending a message to the user using an Adaptive card. With the click of a button, I would like to redirect the user to a particular message in the channel. Is there any way we can achieve this?
  • Sayali-MSFT's avatar
    Aug 30, 2022

    AyeshaKulsumSJ -You can redirect User to particular channel using deep link.
    You need to configure deep link URL with Adaptive Card button.

    Use this deep link format to navigate to a particular conversation within channel thread:

     

    https://teams.microsoft.com/l/message/<channelId>/<parentMessageId>?tenantId=<tenantId>&groupId=<groupId>&parentMessageId=<parentMessageId>&teamName=<teamName>&channelName=<channelName>&createdTime=<createdTime>

     

    Example: 

     

    https://teams.microsoft.com/l/message/<channelId>/1648741500652?tenantId=<tenantId>&groupId=<groupId>&parentMessageId=1648741500652&teamName=<teamName>&channelName=<channelName>&createdTime=1648741500652

     

     

    Reference document-Create deep links - Teams | Microsoft Docs

    Thanks, 

    Sayali

    ------------------------------------------------------------------------------------------

    If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

     

Resources